fix merge conflict and use EVENT_OBJECT_TEMPLATES_COUNT

This commit is contained in:
DizzyEggg
2018-11-18 20:19:10 +01:00
37 changed files with 2386 additions and 4655 deletions

View File

@@ -2559,7 +2559,7 @@ struct EventObjectTemplate *GetBaseTemplateForEventObject(const struct EventObje
{
return NULL;
}
for (i = 0; i < 64; i++) // Using ARRAY_COUNT here results in the wrong conditional branch instruction (bls instead of ble)
for (i = 0; i < EVENT_OBJECT_TEMPLATES_COUNT; i++)
{
if (eventObject->localId == gSaveBlock1Ptr->eventObjectTemplates[i].localId)
{