From 984c1740ec65a685e1c6b07a1171c9fc3b7bec1e Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Fri, 26 Dec 2008 01:38:44 -0500 Subject: Added unlimited values to weight limits --- sigmod/Rules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sigmod/Rules.cpp') 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); } -- cgit