Skip to content
Permalink
Browse files

Merge pull request #518 from kusunosetoru/fix/player_history_double_free

Set player->history NULL after saving it to birther
  • Loading branch information...
NickMcConnell committed May 11, 2019
2 parents cf4bb02 + a5d23dc commit c58af83105fc651f795265afcabdc0201a710a2a
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/player-birth.c
@@ -159,6 +159,7 @@ static void save_roller_data(birther *tosave)
tosave->stat[i] = player->stat_birth[i];

tosave->history = player->history;
player->history = NULL;
my_strcpy(tosave->name, player->full_name, sizeof(tosave->name));
}

0 comments on commit c58af83

Please sign in to comment.
You can’t perform that action at this time.