[Freeciv-Dev] Re: (PR#14550) server crash when loading a game with a cli
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14550 >
On Sat, 5 Nov 2005, Jason Short wrote:
> * Start a server.
> * Connect with a client.
> * /load a game (probably any game).
> * The server crashes.
Oops. Patch attached. Will commit at once.
- Per
Index: server/savegame.c
===================================================================
--- server/savegame.c (revision 11225)
+++ server/savegame.c (working copy)
@@ -2084,7 +2084,8 @@
pcity = create_city_virtual(plr, ptile,
secfile_lookup_str(file, "player%d.c%d.name", plrno, i));
- map_claim_ownership(ptile, plr, ptile);
+ ptile->owner_source = pcity->tile;
+ tile_set_owner(ptile, pcity->owner);
pcity->id=secfile_lookup_int(file, "player%d.c%d.id", plrno, i);
alloc_id(pcity->id);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] Re: (PR#14550) server crash when loading a game with a client attached,
Per I. Mathisen <=
|
|