summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-09-18 12:27:38 +0300
committerJesusaves <cpntb1@ymail.com>2021-02-14 15:56:59 -0300
commit235e261e5376951811bb016fcadf77ebef6ed606 (patch)
treeb0409593fe667a28a41789ea5579ca2e891f8137 /src/map
parentbefe0a249fdeaf48851a695ab56685648a64060e (diff)
downloadhercules-235e261e5376951811bb016fcadf77ebef6ed606.tar.gz
hercules-235e261e5376951811bb016fcadf77ebef6ed606.tar.bz2
hercules-235e261e5376951811bb016fcadf77ebef6ed606.tar.xz
hercules-235e261e5376951811bb016fcadf77ebef6ed606.zip
Fix wrong memory access on removing guild flags from npc
Diffstat (limited to 'src/map')
-rw-r--r--src/map/guild.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index dbfe03d3e..2f056de49 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -2352,6 +2352,7 @@ static void guild_flag_remove(struct npc_data *nd)
if( cursor != i ) {
memmove(&guild->flags[cursor], &guild->flags[i], sizeof(guild->flags[0]));
+ guild->flags[i] = NULL;
}
cursor++;
}