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 fdf182e1f..4fe511234 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; |