mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Possible crash fix
This commit is contained in:
parent
5788d80c78
commit
8d5ab43f66
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue