summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2019-04-21 17:07:47 +0100
committerAsheraf <acheraf1998@gmail.com>2019-05-06 19:59:30 +0000
commitabe4b83a81c437d404aadea723165d98c33d462d (patch)
treee6b5eaeda12876358d6a00636d20bc311502f8ad /src/map/clif.c
parent403939af8bdb08e33f9b0a6613fe2e5e00bbea04 (diff)
downloadhercules-abe4b83a81c437d404aadea723165d98c33d462d.tar.gz
hercules-abe4b83a81c437d404aadea723165d98c33d462d.tar.bz2
hercules-abe4b83a81c437d404aadea723165d98c33d462d.tar.xz
hercules-abe4b83a81c437d404aadea723165d98c33d462d.zip
Move questinfo data from map to npc_data
this will fix the issue where having multiple `questinfo()` blocks wont work properly
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 0aef5b8dc..12e6a06c2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10759,15 +10759,7 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd)
// NPC Quest / Event Icon Check [Kisuka]
#if PACKETVER >= 20090218
- {
- int i;
- for (i = 0; i < VECTOR_LENGTH(map->list[sd->bl.m].qi_data); i++) {
- struct questinfo *qi = &VECTOR_INDEX(map->list[sd->bl.m].qi_data, i);
-
- if (quest->questinfo_validate(sd, qi))
- clif->quest_show_event(sd, &qi->nd->bl, qi->icon, qi->color);
- }
- }
+ quest->questinfo_refresh(sd);
#endif
}