mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
Fix crash in init_mario_after_warp()
This commit is contained in:
parent
9ae1a7c525
commit
a767df7e73
1 changed files with 2 additions and 0 deletions
|
|
@ -400,6 +400,8 @@ void set_mario_initial_action(struct MarioState *m, u32 spawnType, u32 actionArg
|
|||
|
||||
void init_mario_after_warp(void) {
|
||||
struct ObjectWarpNode *spawnNode = area_get_warp_node(sWarpDest.nodeId);
|
||||
if (spawnNode == NULL) { spawnNode = gCurrentArea->warpNodes; }
|
||||
if (spawnNode == NULL) { return; }
|
||||
u32 marioSpawnType = get_mario_spawn_type(spawnNode->object);
|
||||
|
||||
if (gMarioState->action != ACT_UNINITIALIZED) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue