Fix warning doing arithmetic on a boolean
This commit is contained in:
parent
51fdcd5d94
commit
7b63beea89
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ public:
|
|||
// Returns the index of the plane with the given slow statuses.
|
||||
static unsigned int plane_index(bool a_slowed, bool b_slowed)
|
||||
{
|
||||
return a_slowed * 1u + b_slowed * 2u;
|
||||
return (a_slowed ? 1 : 0) + (b_slowed ? 2 : 0);
|
||||
}
|
||||
|
||||
/// What is the chance that an indicated combatant (one of them) is at zero?
|
||||
|
|
Loading…
Add table
Reference in a new issue