diff options
author | Ibrahim Zidan <brahem@aotsw.com> | 2020-04-04 01:44:39 +0200 |
---|---|---|
committer | Ibrahim Zidan <brahem@aotsw.com> | 2020-04-05 20:03:12 +0200 |
commit | f9f72c9d4a8c46587d06ba7c95c07d889be2c803 (patch) | |
tree | cd704547c32bf1ec901d948227397486e48ad357 /src/map/quest.c | |
parent | dd7f653b00239299cdecb7ca826c21e5957863da (diff) | |
download | hercules-f9f72c9d4a8c46587d06ba7c95c07d889be2c803.tar.gz hercules-f9f72c9d4a8c46587d06ba7c95c07d889be2c803.tar.bz2 hercules-f9f72c9d4a8c46587d06ba7c95c07d889be2c803.tar.xz hercules-f9f72c9d4a8c46587d06ba7c95c07d889be2c803.zip |
Fix quest info copying npc_data instead of storing it pointer, resulting in always false comparison and even possible memory violation access
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
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); |