mirror of https://github.com/zeldaret/tmc.git
Fix condition
This commit is contained in:
parent
f57e040e16
commit
d141b5bfbf
|
@ -276,7 +276,7 @@ NONMATCH("./asm/getEmptyEntity.s", Entity* GetEmptyEntity()) {
|
||||||
currentEnt = listPtr->first;
|
currentEnt = listPtr->first;
|
||||||
nextList = listPtr + 1;
|
nextList = listPtr + 1;
|
||||||
while ((u32)currentEnt != (u32)listPtr) {
|
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) {
|
gUpdateContext.current_entity != currentEnt) {
|
||||||
flags_ip = currentEnt->flags & 0x1c;
|
flags_ip = currentEnt->flags & 0x1c;
|
||||||
rv = currentEnt;
|
rv = currentEnt;
|
||||||
|
|
Loading…
Reference in New Issue