mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
parent
ed6cbc2d40
commit
e371ff272b
1 changed files with 2 additions and 2 deletions
|
@ -337,8 +337,8 @@ static bool smlua_field_valid(struct LuaObjectField* data, enum LuaObjectType lo
|
||||||
size_t length = maximum - minimum;
|
size_t length = maximum - minimum;
|
||||||
size_t maxlength = sizeof(void*) + sizeof(u32);
|
size_t maxlength = sizeof(void*) + sizeof(u32);
|
||||||
|
|
||||||
if (length < maxlength) {
|
if (length >= maxlength) {
|
||||||
return (data->lot == lot) && (data->valueOffset == offset) && (lot != LOT_NONE);
|
return (data->lot == lot) && (lot != LOT_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (length >= maxlength);
|
return (length >= maxlength);
|
||||||
|
|
Loading…
Reference in a new issue