aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inertia.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inertia.c b/inertia.c
index ed50c7a..1a958af 100644
--- a/inertia.c
+++ b/inertia.c
@@ -1697,6 +1697,7 @@ static game_state *execute_move(const game_state *state, const char *move)
* This is a solve move, so we don't actually _change_ the
* grid but merely set up a stored solution path.
*/
+ if (move[1] == '\0') return NULL; /* Solution must be non-empty. */
ret = dup_game(state);
install_new_solution(ret, move);
return ret;