diff --git a/src/entity.c b/src/entity.c index 0c69b550..710cd609 100644 --- a/src/entity.c +++ b/src/entity.c @@ -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;