diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 4527265504..3d801d5603 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -275,7 +275,7 @@ bool Actor::IsType( const CString &sType ) { Lua *L = LUA->Get(); this->PushSelf( L ); - bool bRet = CheckLuaObjectType( L, -1, sType, false ); + bool bRet = CheckLuaObjectType( L, lua_gettop(L), sType, false ); lua_pop( L, 1 ); LUA->Release( L );