diff --git a/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c b/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c index 149f57dadc2..bae9dbf273a 100644 --- a/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c +++ b/soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c @@ -113,7 +113,7 @@ void DoorKiller_Init(Actor* thisx, PlayState* play2) { */ // For SoH where all objects are loaded, hardcode the index to match the current map. - switch (play->sceneNum) { + switch (globalCtx->sceneNum) { case SCENE_HIDAN: this->textureEntryIndex = 0; break; @@ -127,7 +127,7 @@ void DoorKiller_Init(Actor* thisx, PlayState* play2) { default: this->textureEntryIndex = 3; } - bankIndex = Object_GetIndex(&play->objectCtx, sDoorTextures[this->textureEntryIndex].objectId); + bankIndex = Object_GetIndex(&globalCtx->objectCtx, sDoorTextures[this->textureEntryIndex].objectId); osSyncPrintf("bank_ID = %d\n", bankIndex); osSyncPrintf("status = %d\n", this->textureEntryIndex);