diff --git a/stepmania/src/LuaBinding.cpp b/stepmania/src/LuaBinding.cpp index 4d92ff61a9..a1d66e8257 100644 --- a/stepmania/src/LuaBinding.cpp +++ b/stepmania/src/LuaBinding.cpp @@ -36,7 +36,7 @@ bool CheckLuaObjectType( lua_State *L, int narg, const char *szType ) int iMetatable = lua_gettop(L); /* Look up the type name. */ - lua_pushstring( L, "__type" ); + lua_pushstring( L, "type" ); lua_rawget( L, iMetatable ); const char *szActualType = lua_tostring( L, -1 ); diff --git a/stepmania/src/LuaBinding.h b/stepmania/src/LuaBinding.h index 56062d19c6..03d56de24d 100644 --- a/stepmania/src/LuaBinding.h +++ b/stepmania/src/LuaBinding.h @@ -82,7 +82,7 @@ public: lua_settable( L, methods_metatable ); } - lua_pushliteral( L, "__type" ); + lua_pushliteral( L, "type" ); lua_pushstring( L, m_sClassName ); lua_settable( L, methods_metatable );