From d51fb0be3fca69df5c9c14df4804545e9632c5f2 Mon Sep 17 00:00:00 2001 From: vaguerant Date: Fri, 21 Oct 2022 15:28:40 +1100 Subject: [PATCH] Fix killer door textures (#1177) * Fix killer door textures * Remove todo as requested by @Rozelette --- soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);