Possible crash fix

This commit is contained in:
MysterD 2022-03-01 18:02:54 -08:00
parent 5788d80c78
commit 8d5ab43f66

View file

@ -2464,6 +2464,7 @@ s32 cur_obj_is_mario_on_platform(void) {
s32 cur_obj_is_any_player_on_platform(void) {
for (int i = 0; i < MAX_PLAYERS; i++) {
if (!is_player_active(&gMarioStates[i])) { continue; }
if (gMarioStates[i].marioObj == NULL) { continue; }
if (gMarioStates[i].marioObj->platform == o) {
return TRUE;
}