diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-12-26 01:38:44 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-12-26 01:38:44 -0500 |
| commit | 984c1740ec65a685e1c6b07a1171c9fc3b7bec1e (patch) | |
| tree | dcca35680d9c8fc52298aadd4e46e1e757ef8a84 /sigmod/Rules.cpp | |
| parent | 91a96fd47fdf9e94366843bc2f27c05526372643 (diff) | |
Added unlimited values to weight limits
Diffstat (limited to 'sigmod/Rules.cpp')
| -rw-r--r-- | sigmod/Rules.cpp | 4 |
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); } |
