summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-12 19:02:37 +0100
committerHaru <haru@dotalux.com>2014-01-12 19:08:40 +0100
commitcd1d0867a006f6a6eb4330142ad3006d37e20684 (patch)
treef84f6840a4170fe606af5af6e30ed62a3a3225a4 /src/map/npc.h
parentfbd5113e258bd511f948d3d583845d89ac8ec216 (diff)
downloadhercules-cd1d0867a006f6a6eb4330142ad3006d37e20684.tar.gz
hercules-cd1d0867a006f6a6eb4330142ad3006d37e20684.tar.bz2
hercules-cd1d0867a006f6a6eb4330142ad3006d37e20684.tar.xz
hercules-cd1d0867a006f6a6eb4330142ad3006d37e20684.zip
Changed some void* to the correct data types where applicable
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index a3f07e79c..2f4401bf7 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -46,6 +46,7 @@ struct npc_shop_data {
struct npc_item_list *item;/* list */
unsigned short items;/* total */
};
+struct npc_parse;
struct npc_data {
struct block_list bl;
struct unit_data *ud;
@@ -67,7 +68,7 @@ struct npc_data {
unsigned short level;
unsigned short stat_point;
- void* chatdb; // pointer to a npc_parse struct (see npc_chat.c)
+ struct npc_parse *chatdb;
char* path;/* path dir */
enum npc_subtype subtype;
int src_id;
@@ -302,12 +303,6 @@ struct pcrematch_set {
/*
* Entire data structure hung off a NPC
- *
- * The reason I have done it this way (a void * in npc_data and then
- * this) was to reduce the number of patches that needed to be applied
- * to a ragnarok distribution to bring this code online. I
- * also wanted people to be able to grab this one file to get updates
- * without having to do a large number of changes.
*/
struct npc_parse {
struct pcrematch_set* active;