aboutsummaryrefslogtreecommitdiff
path: root/netslide.c
diff options
context:
space:
mode:
Diffstat (limited to 'netslide.c')
-rw-r--r--netslide.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/netslide.c b/netslide.c
index e3d03c4..4e6e82b 100644
--- a/netslide.c
+++ b/netslide.c
@@ -318,6 +318,8 @@ static const char *validate_params(const game_params *params, bool full)
return "Barrier probability may not be negative";
if (params->barrier_probability > 1)
return "Barrier probability may not be greater than 1";
+ if (params->movetarget < 0)
+ return "Number of shuffling moves may not be negative";
return NULL;
}