From 485ee905dd57ee67179c013ccd113935f5d6667f Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 19 Oct 2013 22:22:02 +0200 Subject: [PATCH] Fixed minor regression in makepatter. 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 | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index 9b57925..067c758 100644 --- a/gnushogi/makepattern.c +++ b/gnushogi/makepattern.c @@ -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); } -- 1.7.0.4