Index: client/gui-gtk/plrdlg.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/plrdlg.c,v retrieving revision 1.26 diff -u -r1.26 plrdlg.c --- client/gui-gtk/plrdlg.c 2001/10/09 18:57:00 1.26 +++ client/gui-gtk/plrdlg.c 2001/11/11 11:27:47 @@ -350,6 +350,10 @@ SPRITE *flag, *croped, *scaled; flag = get_nation_by_plr(&game.players[playerindex])->flag_sprite; + if (!flag) { + flags[playerindex] = NULL; + return; + } /* calculate the bounding box ... */ sprite_get_bounding_box(flag, &start_x, &start_y, &end_x, &end_y); @@ -415,8 +419,10 @@ &(listindex_to_playerindex[row])); build_flag(i); - gtk_clist_set_pixmap(GTK_CLIST(players_list), row, 1, - flags[i]->pixmap, flags[i]->mask); + if (flags[i]) { + gtk_clist_set_pixmap(GTK_CLIST(players_list), row, 1, + flags[i]->pixmap, flags[i]->mask); + } listindex_to_playerindex[row] = i; playerindex_to_listindex[i] = row;