From 51e1c8fd61d0e8270c7502095c73cf58f8beac62 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 7 Nov 2017 19:18:06 +0300 Subject: Update from new hercules. Removed npc vd recreation because it already fixed in hercules. --- src/emap/status.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/emap/status.c') diff --git a/src/emap/status.c b/src/emap/status.c index 0d60bd2..56ebb2c 100644 --- a/src/emap/status.c +++ b/src/emap/status.c @@ -60,17 +60,6 @@ int estatus_init_post(int retVal, return retVal; } -void estatus_set_viewdata_pre(struct block_list **blPtr, - int *classPtr_ __attribute__ ((unused))) -{ - struct block_list *bl = *blPtr; - if (bl->type != BL_NPC) - return; - TBL_NPC *const npc = (TBL_NPC*)bl; - aFree(npc->vd); - npc->vd = NULL; -} - void estatus_set_viewdata_post(struct block_list *bl, int class_ __attribute__ ((unused))) { @@ -80,10 +69,10 @@ void estatus_set_viewdata_post(struct block_list *bl, return; TBL_NPC *const npc = (TBL_NPC*)bl; struct NpcdExt *data = npcd_get(npc); - if (data && data->init == false && npc->vd) + if (data && data->init == false) { data->init = true; - npc->vd->sex = 3; + npc->vd.sex = 3; if (npc->subtype == SCRIPT) { if (npc->u.scr.script) -- cgit v1.2.3-70-g09d2