fix: potential division by zero
This commit is contained in:
parent
4fb46bd6ec
commit
bb2e93a539
2 changed files with 1 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue