Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12144) switching tilesets crashes freeciv
Home

[Freeciv-Dev] (PR#12144) switching tilesets crashes freeciv

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12144) switching tilesets crashes freeciv
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Feb 2005 13:19:41 -0800
Reply-to: bugs@xxxxxxxxxxx

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

This affects 2.0 and 2.0.99!  And it's all my fault, my fix for a minor 
bug introduced this major bug.

This patch should fix it.

-jason

? client/patch.diff
Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.204.2.14
diff -u -r1.204.2.14 tilespec.c
--- client/tilespec.c   3 Feb 2005 07:58:06 -0000       1.204.2.14
+++ client/tilespec.c   6 Feb 2005 21:18:50 -0000
@@ -1827,6 +1827,7 @@
                  "f.unknown", NULL};
   int i;
 
+  nation->flag_sprite = NULL;
   for (i = 0; tags[i] && !nation->flag_sprite; i++) {
     nation->flag_sprite = load_sprite(tags[i]);
   }

[Prev in Thread] Current Thread [Next in Thread]