sub_808F254

This commit is contained in:
PikalaxALT
2017-09-12 16:17:52 -04:00
parent 9306122359
commit c6ef344262
3 changed files with 11 additions and 31 deletions

10
src/field_map_obj.c Normal file → Executable file
View File

@@ -1629,3 +1629,13 @@ void sub_808F23C(const struct MapObject *mapObject, u8 movementType)
mapObjectTemplate->movementType = movementType;
}
}
void sub_808F254(u8 localId, u8 mapNum, u8 mapGroup)
{
u8 mapObjectId;
if (!TryGetFieldObjectIdByLocalIdAndMap(localId, mapNum, mapGroup, &mapObjectId))
{
sub_808F208(&gMapObjects[mapObjectId]);
}
}