npc_clear_ids_and_state

This commit is contained in:
PikalaxALT
2017-09-06 08:46:47 -04:00
parent 63dd0ea397
commit 83dbdc0318
4 changed files with 14 additions and 20 deletions

View File

@@ -13,4 +13,11 @@
// Code
void npc_clear_ids_and_state(struct MapObject *mapObject)
{
memset(mapObject, 0, sizeof(struct MapObject));
mapObject->localId = 0xFF;
mapObject->mapNum = -1;
mapObject->mapGroup = -1;
mapObject->mapobj_unk_1C = -1;
}