From: deskull Date: Mon, 4 May 2020 08:05:21 +0000 (+0900) Subject: [Fix] #39748 必要な時に階層保存処理に回らないミスを修正. / Fixed a mistake that does not go to the floor... X-Git-Tag: vmacos3.0.0-alpha52~1380 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=75e406a58e312acdb89dc9a753e103dfa0e433a7;p=hengbandforosx%2Fhengbandosx.git [Fix] #39748 必要な時に階層保存処理に回らないミスを修正. / Fixed a mistake that does not go to the floor save process when needed. --- diff --git a/src/floor-save.c b/src/floor-save.c index 307fe803a..2fd171925 100644 --- a/src/floor-save.c +++ b/src/floor-save.c @@ -923,7 +923,7 @@ void leave_floor(player_type *creature_ptr) } /* Extract current floor info or NULL */ - sf_ptr = get_sf_ptr(tmp_floor_idx); + sf_ptr = get_sf_ptr(creature_ptr->floor_id); /* Choose random stairs */ if ((creature_ptr->change_floor_mode & CFM_RAND_CONNECT) && tmp_floor_idx) @@ -1013,7 +1013,7 @@ void leave_floor(player_type *creature_ptr) } /* No current floor -- Left/Enter dungeon etc... */ - if (!tmp_floor_idx) + if (!creature_ptr->floor_id) { /* No longer need to save current floor */ return;