diff --git a/stepmania/src/LuaBinding.cpp b/stepmania/src/LuaBinding.cpp index 1657c8777b..4d92ff61a9 100644 --- a/stepmania/src/LuaBinding.cpp +++ b/stepmania/src/LuaBinding.cpp @@ -19,7 +19,7 @@ void CreateMethodsTable( lua_State *L, const CString &szName ) * Get a userdata, and check that it's either szType or a type * derived from szType, by walking the __index chain. */ -bool CheckType( lua_State *L, int narg, const char *szType ) +bool CheckLuaObjectType( lua_State *L, int narg, const char *szType ) { int iTop = lua_gettop(L); lua_pushvalue( L, narg ); diff --git a/stepmania/src/LuaBinding.h b/stepmania/src/LuaBinding.h index c4aad2f683..56062d19c6 100644 --- a/stepmania/src/LuaBinding.h +++ b/stepmania/src/LuaBinding.h @@ -6,7 +6,7 @@ #include "LuaManager.h" void CreateMethodsTable( lua_State *L, const CString &szName ); -bool CheckType( lua_State *L, int narg, const char *szType ); +bool CheckLuaObjectType( lua_State *L, int narg, const char *szType ); template class Luna @@ -95,7 +95,7 @@ public: // get userdata from Lua stack and return pointer to T object static T *check( lua_State *L, int narg, bool bIsSelf = false ) { - if( !CheckType(L, narg, m_sClassName) ) + if( !CheckLuaObjectType(L, narg, m_sClassName) ) { if( bIsSelf ) luaL_typerror( L, narg, m_sClassName );