OSDN Git Service

Merge pull request #765 from sikabane-works/release/3.0.0Alpha17
[hengbandforosx/hengbandosx.git] / src / birth / game-play-initializer.cpp
index fe3fd1f..d919352 100644 (file)
 /*!
  * @brief ベースアイテム構造体の鑑定済みフラグをリセットする。
  * @return なし
+ * @details
+ * 不具合対策で0からリセットする(セーブは0から)
  */
 static void k_info_reset(void)
 {
-    for (int i = 1; i < max_k_idx; i++) {
+    for (int i = 0; i < max_k_idx; i++) {
         object_kind *k_ptr = &k_info[i];
         k_ptr->tried = FALSE;
         k_ptr->aware = FALSE;
@@ -123,6 +125,7 @@ void player_wipe_without_name(player_type *creature_ptr)
     cheat_save = FALSE;
     cheat_diary_output = FALSE;
     cheat_turn = FALSE;
+    cheat_immortal = FALSE;
 
     current_world_ptr->total_winner = FALSE;
     creature_ptr->timewalk = FALSE;
@@ -150,7 +153,7 @@ void player_wipe_without_name(player_type *creature_ptr)
     creature_ptr->current_floor_ptr->inside_arena = FALSE;
     creature_ptr->current_floor_ptr->inside_quest = 0;
     for (int i = 0; i < MAX_MANE; i++) {
-        creature_ptr->mane_spell[i] = -1;
+        creature_ptr->mane_spell[i] = RF_ABILITY::MAX;
         creature_ptr->mane_dam[i] = 0;
     }