mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix object entry empty check (#5435)
This commit is contained in:
committed by
Ted John
parent
44175b8b38
commit
599af1c410
@@ -111,7 +111,7 @@ bool object_entry_is_empty(const rct_object_entry *entry)
|
||||
{
|
||||
uint64 a, b;
|
||||
memcpy(&a, (uint8 *)entry, 8);
|
||||
memcpy(&b, (uint8 *)entry + 4, 8);
|
||||
memcpy(&b, (uint8 *)entry + 8, 8);
|
||||
|
||||
if (a == 0xFFFFFFFFFFFFFFFF && b == 0xFFFFFFFFFFFFFFFF) return true;
|
||||
if (a == 0 && b == 0) return true;
|
||||
|
||||
Reference in New Issue
Block a user