Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7316) Remove government knowledge from clients
Home

[Freeciv-Dev] Re: (PR#7316) Remove government knowledge from clients

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7316) Remove government knowledge from clients
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Tue, 3 Feb 2004 12:39:24 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7316 >

On Tue, Feb 03, 2004 at 03:42:00AM -0800, Guest wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7316 >
> 
>  
> There's a problem with this patch.  

Of course you are correct. A rather stupid bug. This patch

diff -u -u -r1.134 dialogs.c
--- client/gui-gtk/dialogs.c    2004/01/31 14:56:24 1.134
+++ client/gui-gtk/dialogs.c    2004/02/03 20:32:57
@@ -1203,7 +1203,7 @@
   for (i = 0; i < governments; i++) {
     buttons[i].text = government[i]->name;
     buttons[i].callback = government_callback;
-    buttons[i].data = GINT_TO_POINTER(i);
+    buttons[i].data = GINT_TO_POINTER(government[i]->index);
     buttons[i].sensitive = can_change_to_government(game.player_ptr, i);
   }

got applied.

> David

Please either use the mail interface or provide a full name here or
remain anonymous.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 A life? Cool! Where can I download one?




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