diff options
Diffstat (limited to 'src/layer.cpp')
-rw-r--r-- | src/layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layer.cpp b/src/layer.cpp index b897c45a3..7228fb4b6 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -94,7 +94,7 @@ uint _layer_size; ///< Layer size (sizeX * sizeY) void InstallLayerSystem(uint size_x, uint size_y, uint layer_count) { - if (!IsInsideMM(layer_count, MIN_LAYER_COUNT, MAX_LAYER_COUNT)) + if (!IsInsideMM(layer_count, MIN_LAYER_COUNT, MAX_LAYER_COUNT+1)) error("invalid layer count"); _layer_size_x = size_x; |