OSDN Git Service

[Fix] #40301 calc_weapon_one_hand()の戻り値からの分岐が真偽逆になっていたので修正. / Fixed the problem that...
authordeskull <deskull@users.sourceforge.jp>
Mon, 1 Jun 2020 15:39:58 +0000 (00:39 +0900)
committerHourier <hourier@users.sourceforge.jp>
Tue, 2 Jun 2020 13:23:22 +0000 (22:23 +0900)
src/view/status-first-page.c

index b360ef5..4298a51 100644 (file)
@@ -261,7 +261,7 @@ static void calc_two_hands(player_type *creature_ptr, int *damage, int *to_h)
                }
 
                o_ptr = &creature_ptr->inventory_list[INVEN_RARM + i];
-               if (calc_weapon_one_hand(o_ptr, i, damage, &basedam)) continue;
+               if (!calc_weapon_one_hand(o_ptr, i, damage, &basedam)) continue;
 
                to_h[i] = 0;
                bool poison_needle = FALSE;