<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39517 >

 $subject


 - ML

diff -Nurd -X.diff_ignore freeciv/common/game.c freeciv/common/game.c
--- freeciv/common/game.c	2007-08-06 18:09:20.000000000 +0300
+++ freeciv/common/game.c	2007-08-09 18:10:15.000000000 +0300
@@ -536,7 +536,10 @@
   pplayer->cities = NULL;
 
   /* This comes last because log calls in the above functions may use it. */
-  player_set_nation(pplayer, NULL);
+  if (pplayer->nation != NULL) {
+    /* There never was nation assigned to this player */
+    player_set_nation(pplayer, NULL);
+  }
 
   if (is_barbarian(pplayer)) game.info.nbarbarians--;
 }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to