[Freeciv-Dev] (PR#9632) startunits isn't loaded from savegame
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#9632) startunits isn't loaded from savegame |
From: |
"Mateusz Stefek" <mstefek@xxxxxxxxx> |
Date: |
Sat, 7 Aug 2004 08:14:11 -0700 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9632 >
Fix attached
--
mateusz
----------------------------------------------------------------------
To moze byc ekscytujace lato... >>> http://link.interia.pl/f181c
Index: savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.174
diff -u -r1.174 savegame.c
--- savegame.c 30 Jul 2004 20:40:49 -0000 1.174
+++ savegame.c 7 Aug 2004 15:12:44 -0000
@@ -2925,7 +2925,10 @@
}
game.start_units[i] = '\0';
} else {
- secfile_lookup_str(file, "game.start_units");
+ sz_strlcpy(game.start_units,
+ secfile_lookup_str_default(file,
+ GAME_DEFAULT_START_UNITS,
+ "game.start_units"));
}
game.dispersion =
secfile_lookup_int_default(file, GAME_DEFAULT_DISPERSION,
"game.dispersion");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#9632) startunits isn't loaded from savegame,
Mateusz Stefek <=
|
|