aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--untangle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/untangle.c b/untangle.c
index 1453afb..e849b5b 100644
--- a/untangle.c
+++ b/untangle.c
@@ -755,6 +755,8 @@ static const char *validate_desc(const game_params *params, const char *desc)
return "Expected ',' after number in game description";
desc++; /* eat comma */
}
+ if (a == b)
+ return "Node linked to itself in game description";
}
return NULL;