diff --git a/stepmania/src/LuaBinding.cpp b/stepmania/src/LuaBinding.cpp index 985be97d82..7f68c42e64 100644 --- a/stepmania/src/LuaBinding.cpp +++ b/stepmania/src/LuaBinding.cpp @@ -22,6 +22,8 @@ void CreateMethodsTable( lua_State *L, const CString &szName ) */ bool CheckLuaObjectType( lua_State *L, int narg, const char *szType ) { + ASSERT_M( narg > 0, ssprintf("%i", narg) ); // negative offsets not supported + int iTop = lua_gettop(L); lua_pushvalue( L, narg );