From 0bfb0f41311a4203d2fa45db441f9ff3dc128f56 Mon Sep 17 00:00:00 2001 From: DawnFire42 Date: Sun, 28 Jun 2026 20:57:05 -0400 Subject: [PATCH] fix clamping --- .../libcockatrice/network/server/remote/game/server_counter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcockatrice_network/libcockatrice/network/server/remote/game/server_counter.h b/libcockatrice_network/libcockatrice/network/server/remote/game/server_counter.h index 572a3522b..9b79cae6a 100644 --- a/libcockatrice_network/libcockatrice/network/server/remote/game/server_counter.h +++ b/libcockatrice_network/libcockatrice/network/server/remote/game/server_counter.h @@ -130,7 +130,7 @@ public: [[nodiscard]] bool incrementCount(int delta) { const int oldCount = count; - count = addClamped(count, delta, std::numeric_limits::min(), std::numeric_limits::max()); + count = addClamped(count, delta, minValue, maxValue); return count != oldCount; }