This commit is contained in:
Birunthan Mohanathas
2012-08-05 16:12:36 +03:00
parent a162451e87
commit fd111c0657
4 changed files with 17 additions and 23 deletions

View File

@ -108,9 +108,10 @@ static int GetVariable(lua_State* L)
CMeterWindow* self = GetSelf(L);
std::wstring strTmp = LuaManager::ToWide(L, 2);
if (self->GetParser().GetVariable(strTmp, strTmp))
const std::wstring* value = self->GetParser().GetVariable(strTmp);
if (value)
{
LuaManager::PushWide(L, strTmp.c_str());
LuaManager::PushWide(L, (*value).c_str());
}
else
{