summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/trainer_tower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trainer_tower.c b/src/trainer_tower.c
index 36468a34d..fd10e33b2 100644
--- a/src/trainer_tower.c
+++ b/src/trainer_tower.c
@@ -508,7 +508,7 @@ static void SetUpTrainerTowerDataStruct(void) // fakematching
const struct TrainerTowerFloor *const * r7;
sTrainerTowerState = AllocZeroed(sizeof(*sTrainerTowerState));
- sTrainerTowerState->floorIdx = gMapHeader.mapLayoutId - 42;
+ sTrainerTowerState->floorIdx = gMapHeader.mapLayoutId - LAYOUT_TRAINER_TOWER_1F;
if (ReadTrainerTowerAndValidate() == TRUE)
CEReaderTool_LoadTrainerTower(&sTrainerTowerState->unk_0004);
else