From 75e406a58e312acdb89dc9a753e103dfa0e433a7 Mon Sep 17 00:00:00 2001 From: deskull Date: Mon, 4 May 2020 17:05:21 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#39748=20=E5=BF=85=E8=A6=81=E3=81=AA?= =?utf8?q?=E6=99=82=E3=81=AB=E9=9A=8E=E5=B1=A4=E4=BF=9D=E5=AD=98=E5=87=A6?= =?utf8?q?=E7=90=86=E3=81=AB=E5=9B=9E=E3=82=89=E3=81=AA=E3=81=84=E3=83=9F?= =?utf8?q?=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3=EF=BC=8E=20/=20Fixed=20a=20?= =?utf8?q?mistake=20that=20does=20not=20go=20to=20the=20floor=20save=20pro?= =?utf8?q?cess=20when=20needed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/floor-save.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.0