Skip to content

Commit

Permalink
Merge pull request #2835 from 4144/fixnpcunload
Browse files Browse the repository at this point in the history
Fix memory corruption on unloading npc
  • Loading branch information
MishimaHaruna committed Sep 21, 2020
2 parents e05c239 + 1e70f91 commit 39fc0a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map/guild.c
Expand Up @@ -2380,6 +2380,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++;
}
Expand Down

0 comments on commit 39fc0a3

Please sign in to comment.