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/clif.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/map/clif.c') 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 } -- cgit v1.2.3-60-g2f50