fixed custom object fields

This commit is contained in:
Isaac0-dev 2025-02-14 23:04:23 +10:00
parent 811e60f7cf
commit ff09a2d724

View file

@ -315,6 +315,7 @@ struct LuaObjectField* smlua_get_custom_field(lua_State* L, u32 lot, int keyInde
lof.lot = LOT_NONE;
lof.valueOffset = offsetof(struct Object, rawData.asU32[fieldIndex]);
lof.valueType = lvt;
lof.count = 1;
lua_pop(L, 1); // pop value table
lua_pop(L, 1); // pop _custom_fields