define number of map objects

This commit is contained in:
DizzyEggg
2017-09-13 12:17:48 +02:00
parent 1ecd0a7838
commit a08cd8e5a7
2 changed files with 3 additions and 2 deletions

View File

@@ -1241,7 +1241,7 @@ void ResetBerryTreeSparkleFlags(void)
top = cam_top + 3;
right = cam_left + 14;
bottom = top + 8;
for (i = 0; i < (u8)ARRAY_COUNT(gSaveBlock1Ptr->mapObjects); i++)
for (i = 0; i < MAP_OBJECTS_NUMBER; i++)
{
if (gMapObjects[i].active && gMapObjects[i].animPattern == 12)
{