This commit is contained in:
Birunthan Mohanathas
2012-03-08 15:19:05 +00:00
parent 3905a71af3
commit 04048a6325
6 changed files with 16 additions and 81 deletions

View File

@ -122,14 +122,7 @@ static int MeterWindow_GetMeter(lua_State* L)
return 0;
}
if (CMeterString* stringMeter = dynamic_cast<CMeterString*>(meter))
{
tolua_pushusertype(L, stringMeter, "CMeterString");
}
else
{
tolua_pushusertype(L, meter, "CMeter");
}
tolua_pushusertype(L, meter, "CMeter");
return 1;
}