Fix crash on rated Gothic games
[capablanca.git] / lasker-2.2.3 / src / gamedb.c
index 666b5ed..0d1223f 100644 (file)
@@ -1216,6 +1216,7 @@ static void write_g_out(int g, char *file, int maxlines, int isDraw,
     type[1] = 'b';
   } else if (game_globals.garray[g].type == TYPE_WILD ||
             game_globals.garray[g].type == TYPE_KNIGHTMATE ||
+            game_globals.garray[g].type == TYPE_CAPABLANCA ||
             game_globals.garray[g].type == TYPE_GOTHIC) {
     wr = player_globals.parray[wp].w_stats.rating;
     br = player_globals.parray[bp].w_stats.rating;