type check

This commit is contained in:
Glenn Maynard
2006-09-22 19:08:16 +00:00
parent 32ccbbbb99
commit 16d78d5f05
+3
View File
@@ -19,6 +19,9 @@ void RageColor::PushTable( lua_State *L ) const
void RageColor::FromStack( lua_State *L, int iPos )
{
if( lua_type(L, iPos) != LUA_TTABLE )
return;
lua_pushvalue( L, iPos );
int iFrom = lua_gettop( L );