From 1eecc1573a82bdcb48799179d156f37dbffba4a8 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 5 Dec 2015 21:13:23 +0100 Subject: Fixed a client crash when a MVP Tombstone is created - Follow-up to 57f09704 - Fixes #901, thanks to zackdreaver Signed-off-by: Haru --- src/map/npc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/map') diff --git a/src/map/npc.c b/src/map/npc.c index 21970a42f..8a7998931 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2565,10 +2565,6 @@ bool npc_viewisid(const char * viewid) /** * Creates a new NPC. * - * @remark - * When creating a npc with subtype TOMB, no ID is assigned. The caller - * must assign the dead mob ID after the NPC is created. - * * @param subtype The NPC subtype. * @param m The map id. * @param x The x coordinate on map. @@ -2584,9 +2580,7 @@ struct npc_data *npc_create_npc(enum npc_subtype subtype, int m, int x, int y, u CREATE(nd, struct npc_data, 1); nd->subtype = subtype; nd->bl.type = BL_NPC; - if (subtype != TOMB) { - nd->bl.id = npc->get_new_npc_id(); - } + nd->bl.id = npc->get_new_npc_id(); nd->bl.prev = nd->bl.next = NULL; nd->bl.m = m; nd->bl.x = x; -- cgit v1.2.3-70-g09d2