From abe4b83a81c437d404aadea723165d98c33d462d Mon Sep 17 00:00:00 2001 From: Asheraf Date: Sun, 21 Apr 2019 17:07:47 +0100 Subject: Move questinfo data from map to npc_data this will fix the issue where having multiple `questinfo()` blocks wont work properly --- src/map/npc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/npc.h') diff --git a/src/map/npc.h b/src/map/npc.h index 0eb8befd1..2819cbd87 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -129,6 +129,7 @@ struct npc_data { int spawn_timer; } tomb; } u; + VECTOR_DECL(struct questinfo) qi_data; struct hplugin_data_store *hdata; ///< HPM Plugin Data Store }; @@ -322,6 +323,7 @@ struct npc_interface { void (*barter_delfromsql_sub) (const char *npcname, int itemId, int itemId2, int amount2); bool (*db_checkid) (const int id); void (*refresh) (struct npc_data* nd); + void (*questinfo_clear) (struct npc_data *nd); /** * For the Secure NPC Timeout option (check config/Secure.h) [RR] **/ -- cgit v1.2.3-60-g2f50