Fixed crash in init_mario_after_warp()

This commit is contained in:
MysterD 2023-04-20 21:37:22 -07:00
parent e31a616103
commit 230ba17c8d

View file

@ -525,7 +525,7 @@ void init_mario_after_warp(void) {
network_player_update_course_level(gNetworkPlayerLocal, gCurrCourseNum, gCurrActStarNum, gCurrLevelNum, gCurrAreaIndex);
}
if (gMarioState->health <= 0x110) {
if (gMarioState && gMarioState->health <= 0x110) {
gMarioState->health = 0x880;
}