mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
Allow Lua to set fields to nil
This commit is contained in:
parent
d206581c87
commit
faca15ae12
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue