summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-11-03 15:26:12 +0100
committerHaru <haru@dotalux.com>2015-11-12 00:01:32 +0100
commit57f09704aaa62295a9a967726a0dbabda40770c4 (patch)
treebcc01b809712bdbd6ef2f7fff0faf4f80e382b09 /src/map/mob.c
parent556ea4c20bb7ca06adb572ccefc1986f71e6a5c0 (diff)
downloadhercules-57f09704aaa62295a9a967726a0dbabda40770c4.tar.gz
hercules-57f09704aaa62295a9a967726a0dbabda40770c4.tar.bz2
hercules-57f09704aaa62295a9a967726a0dbabda40770c4.tar.xz
hercules-57f09704aaa62295a9a967726a0dbabda40770c4.zip
Added subtype initializer to npc_create_npc
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index c925d02ce..6cbbd3a2a 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -142,13 +142,11 @@ void mvptomb_create(struct mob_data *md, char *killer, time_t time)
if ( md->tomb_nid )
mob->mvptomb_destroy(md);
- nd = npc->create_npc(md->bl.m, md->bl.x, md->bl.y, md->ud.dir, MOB_TOMB);
+ nd = npc->create_npc(TOMB, md->bl.m, md->bl.x, md->bl.y, md->ud.dir, MOB_TOMB);
md->tomb_nid = nd->bl.id;
safestrncpy(nd->name, msg_txt(856), sizeof(nd->name)); // "Tomb"
- nd->subtype = TOMB;
-
nd->u.tomb.md = md;
nd->u.tomb.kill_time = time;