From f533842452ec472da7adeb47331db6fa464090bb Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 11 Oct 2005 10:08:55 +0000 Subject: [PATCH] fix assert --- stepmania/src/Actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );