summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-06-25 06:08:51 +0100
committerAsheraf <acheraf1998@gmail.com>2018-07-24 02:15:37 +0100
commit620c55e87019a46ffffc6ffb69bea77df088b904 (patch)
treea7171972c1b207778ce2dc9ac944477ff759ae76 /src/map/clif.c
parentbb301746703582be9f7c30b969f03c1ab14d1228 (diff)
downloadhercules-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/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 904bfdd68..061cb7073 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10066,8 +10066,8 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd)
#if PACKETVER >= 20090218
{
int i;
- 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( quest->check(sd, qi->quest_id, HAVEQUEST) == -1 ) {// Check if quest is not started
if( qi->hasJob ) { // Check if quest is job-specific, check is user is said job class.
if (sd->status.class == qi->job)