OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d24e1b8
)
[Fix] #39748 必要な時に階層保存処理に回らないミスを修正. / Fixed a mistake that does not go to the floor...
author
deskull
<deskull@users.sourceforge.jp>
Mon, 4 May 2020 08:05:21 +0000
(17:05 +0900)
committer
deskull
<deskull@users.sourceforge.jp>
Mon, 4 May 2020 08:05:21 +0000
(17:05 +0900)
src/floor-save.c
patch
|
blob
|
history
diff --git
a/src/floor-save.c
b/src/floor-save.c
index
307fe80
..
2fd1719
100644
(file)
--- 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;