Match sub_08018BB4 and adjust types

This commit is contained in:
Tal Hayon
2022-05-08 23:49:52 +03:00
parent 854e623bf9
commit ffdec50c76
8 changed files with 53 additions and 89 deletions
+3 -3
View File
@@ -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;