OSDN Git Service

[fix] マージによりコンパイルエラーが発生
authorHabu <habu@users.osdn.me>
Fri, 29 Jan 2021 15:35:21 +0000 (00:35 +0900)
committerHabu <habu@users.osdn.me>
Fri, 29 Jan 2021 15:35:21 +0000 (00:35 +0900)
c9ad62aea1854ec46e8e7c33ca01e80f47210fbc のマージにより
リファクタリング前の変数使用によるコンパイルエラーが発生している。
リファクタリングに合わせた変数に修正する。

src/player/player-status.c

index 01d979a..5592036 100644 (file)
@@ -3249,11 +3249,11 @@ static s16b calc_to_hit(player_type *creature_ptr, INVENTORY_IDX slot, bool is_t
         hit += (creature_ptr->lev / 3);
     }
 
-    if ((empty_hands(creature_ptr, FALSE) & EMPTY_HAND_RARM) && id == 0) {
+    if ((empty_hands(creature_ptr, FALSE) & EMPTY_HAND_RARM) && calc_hand == PLAYER_HAND_RIGHT) {
         hit += (p_ptr->skill_exp[GINOU_SUDE] - WEAPON_EXP_BEGINNER) / 200;
     }
 
-    if ((empty_hands(creature_ptr, FALSE) & EMPTY_HAND_LARM) && id == 1) {
+    if ((empty_hands(creature_ptr, FALSE) & EMPTY_HAND_LARM) && calc_hand == PLAYER_HAND_LEFT) {
         hit += (p_ptr->skill_exp[GINOU_SUDE] - WEAPON_EXP_BEGINNER) / 200;
     }