src/game.c

changeset 59
3fa1de896666
parent 55
54ea19938d57
child 60
0c50aac49e55
--- a/src/game.c	Tue Aug 28 14:03:09 2018 +0200
+++ b/src/game.c	Tue Aug 28 14:16:30 2018 +0200
@@ -499,7 +499,7 @@
         if (pgnfile) {
             int result = read_pgn(pgnfile, &gamestate, &(settings->gameinfo));
             fclose(pgnfile);
-            if (result != EXIT_SUCCESS) {
+            if (result) {
                 addstr("Invalid PGN file content.\n");
                 return;
             }

mercurial