From e8346ea6e4019fc98a97cbe3e0c4dad028df1652 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Nov 2017 02:25:38 +0300 Subject: Allow each npc use own view_data structure. Allow npc to use player classes (for older than 20170726 npc visible as players). View_data structure can be copied from predefined view_data lists created new if npc using player type. --- src/map/npc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/npc.h') diff --git a/src/map/npc.h b/src/map/npc.h index 3bd11d536..68ab18820 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -70,7 +70,7 @@ struct npc_parse; struct npc_data { struct block_list bl; struct unit_data *ud; - struct view_data *vd; + struct view_data vd; unsigned int option; struct npc_data *master_nd; short class_; -- cgit v1.2.3-60-g2f50