diff options
author | Asheraf <acheraf1998@gmail.com> | 2018-06-25 06:08:51 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-07-24 02:15:37 +0100 |
commit | 620c55e87019a46ffffc6ffb69bea77df088b904 (patch) | |
tree | a7171972c1b207778ce2dc9ac944477ff759ae76 /src/map/script.c | |
parent | bb301746703582be9f7c30b969f03c1ab14d1228 (diff) | |
download | hercules-620c55e87019a46ffffc6ffb69bea77df088b904.tar.gz hercules-620c55e87019a46ffffc6ffb69bea77df088b904.tar.bz2 hercules-620c55e87019a46ffffc6ffb69bea77df088b904.tar.xz hercules-620c55e87019a46ffffc6ffb69bea77df088b904.zip |
Convert questinfo data into a vector
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index e678a7738..4dc4ee333 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -20985,8 +20985,8 @@ static BUILDIN(setquest) quest->add(sd, quest_id, time_limit); // If questinfo is set, remove quest bubble once quest is set. - for (i = 0; i < map->list[sd->bl.m].qi_count; i++) { - struct questinfo *qi = &map->list[sd->bl.m].qi_data[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 (qi->quest_id == quest_id) { #if PACKETVER >= 20120410 clif->quest_show_event(sd, &qi->nd->bl, 9999, 0); |