Fixed infinite loop with King Bobomb

This commit is contained in:
MysterD 2020-09-07 10:50:32 -07:00
parent 3145dfabdc
commit 214697fc8e
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ struct MarioState* king_bobomb_nearest_mario_state() {
nearestDist = dist;
}
}
if (!checkActive) { break; }
checkActive = FALSE;
} while (nearest == NULL);

View File

@ -535,6 +535,7 @@ struct MarioState* nearest_mario_state_to_object(struct Object *obj) {
nearestDist = dist;
}
}
if (!checkActive) { break; }
checkActive = FALSE;
} while (nearest == NULL);