mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
fix clamping
This commit is contained in:
parent
f74f83c5ec
commit
0bfb0f4131
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ public:
|
|||
[[nodiscard]] bool incrementCount(int delta)
|
||||
{
|
||||
const int oldCount = count;
|
||||
count = addClamped(count, delta, std::numeric_limits<int>::min(), std::numeric_limits<int>::max());
|
||||
count = addClamped(count, delta, minValue, maxValue);
|
||||
return count != oldCount;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue