diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-05-08 23:49:52 +0300 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-05-08 23:49:52 +0300 |
| commit | ffdec50c76bfbcc6a090537002085f0a94e0979d (patch) | |
| tree | 31c3564889ead779e2f8c41677e2be8107345f68 /src/object/objectOnPillar.c | |
| parent | 854e623bf9b5c9c2478dcea5578a754f69436b57 (diff) | |
Match sub_08018BB4 and adjust types
Diffstat (limited to 'src/object/objectOnPillar.c')
| -rw-r--r-- | src/object/objectOnPillar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/objectOnPillar.c b/src/object/objectOnPillar.c index 7f0456c8..5b5e8010 100644 --- a/src/object/objectOnPillar.c +++ b/src/object/objectOnPillar.c @@ -294,9 +294,9 @@ void sub_080971E0(ObjectOnPillarEntity* this) { bool32 sub_08097348(u32 tilePosition) { u32 index; TileEntity* tileEntity = gSmallChests; - for (index = 0; index < 8; index++, tileEntity++) { - if (tileEntity->_4 == tilePosition) { - return CheckLocalFlag(tileEntity->_1); + for (index = 0; index < ARRAY_COUNT(gSmallChests); index++, tileEntity++) { + if (tileEntity->tilePos == tilePosition) { + return CheckLocalFlag(tileEntity->localFlag); } } return FALSE; |
