summaryrefslogtreecommitdiff
path: root/src/loadsave.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2017-05-02 19:20:57 +0200
committerBardur Arantsson <bardur@scientician.net>2017-05-02 19:20:57 +0200
commit0f37adeca0e2facfcb32f30e285048fac23c8845 (patch)
treeafd03e3d5b92f2936e0606c52d20e3704e16295f /src/loadsave.cc
parent2bf6a6ce72bf3f2038cd383fb7c6d35679ef9341 (diff)
Move died_from to Game struct
Diffstat (limited to 'src/loadsave.cc')
-rw-r--r--src/loadsave.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loadsave.cc b/src/loadsave.cc
index 645d479e..6e7ae7ff 100644
--- a/src/loadsave.cc
+++ b/src/loadsave.cc
@@ -522,7 +522,7 @@ static bool_ do_extra(ls_flag_t flag)
do_std_string(game->player_name, flag);
- do_string(died_from, 80, flag);
+ do_std_string(game->died_from, flag);
for (std::size_t i = 0; i < 4; i++)
{
@@ -2752,7 +2752,7 @@ bool_ load_player(void)
if (p_ptr->chp >= 0)
{
/* Reset cause of death */
- (void)strcpy(died_from, "(alive and well)");
+ game->died_from = "(alive and well)";
}
/* Success */