From 14fd08abc11a5fff2d9d8d4b31461da827047ca3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 23 Jun 2005 08:47:34 +0000 Subject: [PATCH] __type -> type --- stepmania/src/LuaBinding.cpp | 2 +- stepmania/src/LuaBinding.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 );