Allow Lua to set fields to nil

This commit is contained in:
MysterD 2022-04-22 23:49:14 -07:00
parent 09217150e1
commit 6436c257ac
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ LuaFunction smlua_to_lua_function(lua_State* L, int index) {
void* smlua_to_cobject(lua_State* L, int index, u16 lot) {
s32 indexType = lua_type(L, index);
if (indexType == LUA_TNIL) { return NULL; }
if (indexType != LUA_TTABLE) {
LOG_LUA_LINE("smlua_to_cobject received improper type '%d'", lua_type(L, index));
gSmLuaConvertSuccess = false;