Script: Replaced ReadString/ReadNumber with GetOption/GetNumberOption.

This commit is contained in:
Birunthan Mohanathas
2012-03-11 09:59:48 +00:00
parent db05adaf2b
commit 63c42fe3a5
4 changed files with 50 additions and 56 deletions

View File

@@ -152,7 +152,7 @@ void CMeasureScript::ReadConfig(CConfigParser& parser, const WCHAR* section)
LogWithArgs(LOG_WARNING, L"Script: Using deprecated GetStringValue() in [%s]", m_Name.c_str());
}
lua_rawgeti(LuaManager::GetState(), LUA_GLOBALSINDEX, m_LuaScript->GetRef());
lua_rawgeti(L, LUA_GLOBALSINDEX, m_LuaScript->GetRef());
*(CMeterWindow**)lua_newuserdata(L, sizeof(CMeterWindow*)) = m_MeterWindow;
lua_getglobal(L, "CMeterWindow");