OSDN Git Service

[Fix] floor_warp() 切り分けの際にウィザードモードのフロア移動機能が正しくフロアを指定しなくなっていたので修正.
authordeskull <deskull@users.sourceforge.jp>
Wed, 30 Jun 2021 03:42:32 +0000 (12:42 +0900)
committerDeskull <61610939+sikabane-works@users.noreply.github.com>
Sun, 4 Jul 2021 01:48:32 +0000 (10:48 +0900)
src/wizard/wizard-special-process.cpp

index a359f01..85ef96a 100644 (file)
@@ -461,11 +461,11 @@ void wiz_jump_to_dungeon(player_type *creature_ptr)
         return;
     }
 
-    if (command_arg < d_info[creature_ptr->dungeon_idx].mindepth)
+    if (command_arg < d_info[dungeon_type].mindepth)
         command_arg = 0;
 
-    if (command_arg > d_info[creature_ptr->dungeon_idx].maxdepth)
-        command_arg = (COMMAND_ARG)d_info[creature_ptr->dungeon_idx].maxdepth;
+    if (command_arg > d_info[dungeon_type].maxdepth)
+        command_arg = (COMMAND_ARG)d_info[dungeon_type].maxdepth;
 
     msg_format("You jump to dungeon level %d.", command_arg);
     if (autosave_l)