summaryrefslogtreecommitdiff
path: root/src/emap/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-07 19:18:06 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-07 19:18:06 +0300
commit51e1c8fd61d0e8270c7502095c73cf58f8beac62 (patch)
tree5dd4ea8d0f7360660552fe42e49bfe3488fd0233 /src/emap/status.c
parent1e553c3f7a8d444983ee25c0cefbcb4e00a54305 (diff)
downloadevol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.tar.gz
evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.tar.bz2
evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.tar.xz
evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.zip
Update from new hercules.s20171129
Removed npc vd recreation because it already fixed in hercules.
Diffstat (limited to 'src/emap/status.c')
-rw-r--r--src/emap/status.c15
1 files changed, 2 insertions, 13 deletions
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)