diff options
Diffstat (limited to 'sigmod/Map.cpp')
| -rw-r--r-- | sigmod/Map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sigmod/Map.cpp b/sigmod/Map.cpp index bea4f227..667b5524 100644 --- a/sigmod/Map.cpp +++ b/sigmod/Map.cpp @@ -155,7 +155,7 @@ void Sigmod::Map::setName(const QString& name) void Sigmod::Map::setFlyWarp(const int flyWarp) { if ((flyWarp != -1) && !warpById(flyWarp)) - emit(error(bounds("flyWarp"))); + emit(error(bounds("flyWarp", flyWarp))); else CHECK(flyWarp); } @@ -168,7 +168,7 @@ void Sigmod::Map::setType(const Type type) void Sigmod::Map::setWidth(const int width) { if (width <= 0) - emit(error(bounds("width"))); + emit(error(bounds("width", 1, INT_MAX, width))); else CHECK(width); } @@ -176,7 +176,7 @@ void Sigmod::Map::setWidth(const int width) void Sigmod::Map::setHeight(const int height) { if (height <= 0) - emit(error(bounds("height"))); + emit(error(bounds("height", 1, INT_MAX, height))); else CHECK(height); } |
