Removed some dead code and fixed luax_pushtype when the object argument is null.

This commit is contained in:
Alex Szpakowski
2014-08-28 00:48:32 -03:00
parent e26abb417e
commit 40c6821048
4 changed files with 4 additions and 58 deletions
+3
View File
@@ -398,7 +398,10 @@ void luax_rawnewtype(lua_State *L, const char *name, bits flags, love::Object *o
void luax_pushtype(lua_State *L, const char *name, bits flags, love::Object *object)
{
if (object == nullptr)
{
lua_pushnil(L);
return;
}
// Fetch the registry table of instantiated types.
luax_getregistry(L, REGISTRY_TYPES);