summaryrefslogtreecommitdiffstats
path: root/sigmod/Rules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/Rules.cpp')
-rw-r--r--sigmod/Rules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sigmod/Rules.cpp b/sigmod/Rules.cpp
index 90f176b9..3de6fe1a 100644
--- a/sigmod/Rules.cpp
+++ b/sigmod/Rules.cpp
@@ -271,8 +271,8 @@ void Sigmod::Rules::setMaxMoney(const int maxMoney)
void Sigmod::Rules::setMaxTotalWeight(const int maxTotalWeight)
{
- if (maxTotalWeight < 0)
- emit(error(bounds("maxTotalWeight", 0, INT_MAX, maxTotalWeight)));
+ if (maxTotalWeight < -1)
+ emit(error(bounds("maxTotalWeight", -1, INT_MAX, maxTotalWeight)));
else
CHECK(maxTotalWeight);
}