From ffdec50c76bfbcc6a090537002085f0a94e0979d Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sun, 8 May 2022 23:49:52 +0300 Subject: Match sub_08018BB4 and adjust types --- src/object/objectOnPillar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object') 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; -- cgit v1.2.3