OSDN Git Service

[fix] #38221 (2.2.1.4) 無双の型の反撃時、モンスター名の未使用変数参照を修正。 / Fix referenced no initialized...
authorDeskull <deskull@users.sourceforge.jp>
Sat, 21 Apr 2018 01:01:51 +0000 (10:01 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 21 Apr 2018 01:01:51 +0000 (10:01 +0900)
src/defines.h
src/melee1.c

index e55457f..8651998 100644 (file)
@@ -53,7 +53,7 @@
 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
 #define FAKE_VER_PATCH 1 /*!< ゲームのバージョン番号定義(パッチ番号) */
-#define FAKE_VER_EXTRA 3 /*!< ゲームのバージョン番号定義(エクストラ番号) */
+#define FAKE_VER_EXTRA 4 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index 7b8a8d3..74a6e38 100644 (file)
@@ -2047,7 +2047,7 @@ bool make_attack_normal(MONSTER_IDX m_idx)
        if ((p_ptr->counter || (p_ptr->special_defense & KATA_MUSOU)) && alive && !p_ptr->is_dead && m_ptr->ml && (p_ptr->csp > 7))
        {
                char m_target_name[80];
-               monster_desc(m_name, m_ptr, 0);
+               monster_desc(m_target_name, m_ptr, 0);
 
                p_ptr->csp -= 7;
                msg_format(_("%^sに反撃した!", "Your counterattack to %s!"), m_target_name);