Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2003:
[Freeciv-Dev] (PR#3758) SET_SPRITE prints out bogus data
Home

[Freeciv-Dev] (PR#3758) SET_SPRITE prints out bogus data

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#3758) SET_SPRITE prints out bogus data
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Mar 2003 00:00:09 -0800
Reply-to: rt@xxxxxxxxxxxxxx

As pointed out by Rafal in PR#3757, the die() function in SET_SPRITE 
erronously prints out the 'buffer' string instead of the 'tag' one. 
This was broken by me in PR#2967.

jason

? client/annotate
Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.112
diff -u -r1.112 tilespec.c
--- client/tilespec.c   2003/03/18 06:24:18     1.112
+++ client/tilespec.c   2003/03/21 07:57:50
@@ -705,7 +705,7 @@
 #define SET_SPRITE(field, tag) do {                       \
        sprites.field = load_sprite(tag);                  \
        if (!sprites.field) {                              \
-         die("Sprite tag %s missing.", buffer);           \
+         die("Sprite tag %s missing.", tag);              \
        }                                                  \
     } while(FALSE)
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#3758) SET_SPRITE prints out bogus data, Jason Short <=