Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] Re: (PR#13610) Segfault in is_great_wonder
Home

[Freeciv-Dev] Re: (PR#13610) Segfault in is_great_wonder

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#13610) Segfault in is_great_wonder
From: "White Raven" <whraven@xxxxxxxxxxxxxxxx>
Date: Thu, 4 Aug 2005 13:54:47 -0700
Reply-to: bugs@xxxxxxxxxxx

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

Looks like a simple transposition.  This patch appears to fix it.


--- client/gui-gtk-2.0/wldlg.c  3 Aug 2005 16:19:07 -0000       1.49
+++ client/gui-gtk-2.0/wldlg.c  4 Aug 2005 20:52:34 -0000
@@ -548,10 +548,10 @@
  
   if (gtk_tree_selection_get_selected(selection, &model, &it)) {
     gint cid;
-    struct city_production target = cid_decode(cid);
  
     gtk_tree_model_get(model, &it, 0, &cid, -1);
  
+    struct city_production target = cid_decode(cid);
     if (target.is_unit) {
       popup_help_dialog_typed(get_unit_type(target.value)->name,
HELP_UNIT);
     } else if (is_great_wonder(target.value)) {





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#13610) Segfault in is_great_wonder, White Raven <=