fix: potential division by zero

This commit is contained in:
jeefo 2023-04-25 09:12:06 +03:00
commit bb2e93a539
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 1 additions and 10 deletions

View file

@ -398,7 +398,7 @@ public:
}
int getHighestDamageForTeam (int team) const {
return m_highestDamage[team];
return cr::max (1, m_highestDamage[team]);
}
void setHighestDamageForTeam (int team, int value) {