Fix condition

This commit is contained in:
Tal Hayon 2022-01-01 02:09:40 +02:00
parent f57e040e16
commit d141b5bfbf
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ NONMATCH("./asm/getEmptyEntity.s", Entity* GetEmptyEntity()) {
currentEnt = listPtr->first;
nextList = listPtr + 1;
while ((u32)currentEnt != (u32)listPtr) {
if (currentEnt->kind != MANAGER && (currentEnt->flags & 0x1c) == flags_ip &&
if (currentEnt->kind != MANAGER && (currentEnt->flags & 0x1c) < flags_ip &&
gUpdateContext.current_entity != currentEnt) {
flags_ip = currentEnt->flags & 0x1c;
rv = currentEnt;