summaryrefslogtreecommitdiff
path: root/src/manager/manager29.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager/manager29.c')
-rw-r--r--src/manager/manager29.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager/manager29.c b/src/manager/manager29.c
index 02ed52ba..55a5548f 100644
--- a/src/manager/manager29.c
+++ b/src/manager/manager29.c
@@ -33,7 +33,7 @@ void sub_0805CBD0(Manager29* this) {
this->unk_38 = (this->unk_38 >> 4 & 0x3fU) | (((this->unk_3a << 0x10) >> 0x14 & 0x3fU) << 6);
this->unk_3a = (this->unk_3c >> 4 & 0x3f) | (((this->unk_36 + this->unk_37 * 0x100) >> 4 & 0x3fU) << 6);
this->unk_3c = GetTileType(this->unk_38, this->unk_34);
- layer = GetLayerByIndex(this->unk_34);
+ layer = GetTileBuffer(this->unk_34);
this->unk_28 = (u16*)layer->metatileTypes;
this->unk_2c = &layer->mapData[(s16)this->unk_3a];
}