Fixed minor regression in makepatter.
authorYann Dirson <ydirson@free.fr>
Sat, 19 Oct 2013 20:22:02 +0000 (22:22 +0200)
committerYann Dirson <ydirson@free.fr>
Sat, 19 Oct 2013 20:22:02 +0000 (22:22 +0200)
In 6cdb4afe21c8d0eb740a6a22a02a0adf922fddfc, I messed up a conditional
causing an error message to be written even when we did find a pattern file.

gnushogi/makepattern.c

index 9b57925..067c758 100644 (file)
@@ -232,10 +232,10 @@ ReadOpeningSequences (short *pindex)
         ShowMessage(s);
 
         fclose(fd);
+    } else {
+        sprintf(s, "no pattern file '%s'", patternfile);
+        ShowMessage(s);
     }
-
-    sprintf(s, "no pattern file '%s'", patternfile);
-    ShowMessage(s);
 }