__type -> type
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user