[Freeciv-Dev] (PR#13745) savegame crash
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13745 >
This is the fix.
Commiting immediately.
--
mateusz
Index: server/ruleset.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/ruleset.c,v
retrieving revision 1.196.2.3
diff -u -r1.196.2.3 ruleset.c
--- server/ruleset.c 21 Jul 2005 19:32:04 -0000 1.196.2.3
+++ server/ruleset.c 23 Aug 2005 08:28:27 -0000
@@ -1805,6 +1805,9 @@
if (game.players[i].government == G_MAGIC) {
game.players[i].government = game.default_government;
}
+ if (game.players[i].target_government == G_MAGIC) {
+ game.players[i].target_government = game.default_government;
+ }
}
/* easy ones: */
|
|