diff --git a/src/g_shared/sbarinfo_commands.cpp b/src/g_shared/sbarinfo_commands.cpp index ce94b2bc2..bb1b04850 100644 --- a/src/g_shared/sbarinfo_commands.cpp +++ b/src/g_shared/sbarinfo_commands.cpp @@ -3069,8 +3069,7 @@ class CommandHasWeaponPiece : public SBarInfoCommandFlowControl AWeaponHolder *hold = static_cast(inv); if(hold->PieceWeapon == weapon) { - if(hold->PieceMask & (1 << (piece-1))) - SetTruth(true, block, statusBar); + SetTruth(0 != (hold->PieceMask & (1 << (piece-1))), block, statusBar); return; } }