summaryrefslogtreecommitdiff
path: root/src/emap/status.c
diff options
context:
space:
mode:
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)