chiark / gitweb /
changelog: document last change
[sgt-puzzles.git] / unequal.c
index 1c8984a14eceb790543fc8484e42c8b9ce79b0b7..a63b7d8ed0971515e5ceaa27c02582edd1aadaab 100644 (file)
--- a/unequal.c
+++ b/unequal.c
@@ -1214,7 +1214,7 @@ static game_state *load_game(const game_params *params, const char *desc,
             why = "Too much data to fill grid"; goto fail;
         }
 
-        if (*p < '0' && *p > '9') {
+        if (*p < '0' || *p > '9') {
             why = "Expecting number in game description"; goto fail;
         }
         n = atoi(p);
@@ -1993,7 +1993,7 @@ static void game_print(drawing *dr, const game_state *state, int tilesize)
 const struct game thegame = {
     "Unequal", "games.unequal", "unequal",
     default_params,
-    game_fetch_preset,
+    game_fetch_preset, NULL,
     decode_params,
     encode_params,
     free_params,