src/game.c

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

mercurial