Fixed infinite loop with King Bobomb
This commit is contained in:
parent
3145dfabdc
commit
214697fc8e
|
@ -16,6 +16,7 @@ struct MarioState* king_bobomb_nearest_mario_state() {
|
|||
nearestDist = dist;
|
||||
}
|
||||
}
|
||||
if (!checkActive) { break; }
|
||||
checkActive = FALSE;
|
||||
} while (nearest == NULL);
|
||||
|
||||
|
|
|
@ -535,6 +535,7 @@ struct MarioState* nearest_mario_state_to_object(struct Object *obj) {
|
|||
nearestDist = dist;
|
||||
}
|
||||
}
|
||||
if (!checkActive) { break; }
|
||||
checkActive = FALSE;
|
||||
} while (nearest == NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue