summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-02 02:25:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-04 23:24:24 +0300
commite8346ea6e4019fc98a97cbe3e0c4dad028df1652 (patch)
tree1254050a02ee42191a0f5952dc0918691d1c9c82 /src/map/npc.h
parent41f3237e4537d7105fb47d56b455d31cf33c155c (diff)
downloadhercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.tar.gz
hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.tar.bz2
hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.tar.xz
hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.zip
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.
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h2
1 files changed, 1 insertions, 1 deletions
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_;