Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2005:
[Freeciv-Dev] (PR#14554) Fix borders savegame bug
Home

[Freeciv-Dev] (PR#14554) Fix borders savegame bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14554) Fix borders savegame bug
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 6 Nov 2005 07:21:37 -0800
Reply-to: bugs@xxxxxxxxxxx

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

Another embarrassing borders savegame bug. Any savegames you have made
since the commit will not retain their borders as they should. Will commit
at once.

  - Per

Index: server/savegame.c
===================================================================
--- server/savegame.c   (revision 11226)
+++ server/savegame.c   (working copy)
@@ -942,7 +942,7 @@
         if (ptile->owner_source == NULL) {
           strcpy(token, "-");
         } else {
-          snprintf(token, sizeof(token), "%d", ptile->index);
+          snprintf(token, sizeof(token), "%d", ptile->owner_source->index);
         }
         strcat(line, token);
         if (x + 1 < map.xsize) {

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14554) Fix borders savegame bug, Per I. Mathisen <=