Skip to content

Commit

Permalink
Fix killer door textures (HarbourMasters#1177)
Browse files Browse the repository at this point in the history
* Fix killer door textures

* Remove todo as requested by @Rozelette
  • Loading branch information
vaguerant authored and th-2021 committed Nov 28, 2022
1 parent b6da393 commit d51fb0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soh/src/overlays/actors/ovl_Door_Killer/z_door_killer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit d51fb0b

Please sign in to comment.