diff options
author | Haru <haru@dotalux.com> | 2020-04-06 05:18:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 05:18:14 +0200 |
commit | 1ae5a4cb1003b9c336c315142e66a5e5b7f3ca32 (patch) | |
tree | 74d92f0d0f3cda2a2de3e9d7b2c2b6203afc1e48 /src/map/quest.c | |
parent | ab640e4745afdf771709dce826aee97e0e4670fd (diff) | |
parent | 58c4ce73b9fdc1d67a928e37742510bf49bb7dbc (diff) | |
download | hercules-1ae5a4cb1003b9c336c315142e66a5e5b7f3ca32.tar.gz hercules-1ae5a4cb1003b9c336c315142e66a5e5b7f3ca32.tar.bz2 hercules-1ae5a4cb1003b9c336c315142e66a5e5b7f3ca32.tar.xz hercules-1ae5a4cb1003b9c336c315142e66a5e5b7f3ca32.zip |
Merge pull request #2682 from HerculesWS/questinfo_memory_fixes
Questinfo memory violation and handling fixes
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index 10ea668a6..217acfa19 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -675,7 +675,7 @@ static void quest_questinfo_refresh(struct map_session_data *sd) nullpo_retv(sd); for (int i = 0; i < VECTOR_LENGTH(map->list[sd->bl.m].qi_list); i++) { - struct npc_data *nd = &VECTOR_INDEX(map->list[sd->bl.m].qi_list, i); + struct npc_data *nd = VECTOR_INDEX(map->list[sd->bl.m].qi_list, i); int j; ARR_FIND(0, VECTOR_LENGTH(nd->qi_data), j, quest->questinfo_validate(sd, &VECTOR_INDEX(nd->qi_data, j)) == true); |