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

 Help for tech shows wrong buildings as allowed by tech. Fix attached.


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-gtk-2.0/helpdlg.c freeciv/client/gui-gtk-2.0/helpdlg.c
--- freeciv/client/gui-gtk-2.0/helpdlg.c	2007-03-05 21:11:59.000000000 +0200
+++ freeciv/client/gui-gtk-2.0/helpdlg.c	2007-03-11 21:30:32.000000000 +0200
@@ -931,8 +931,8 @@
       /* FIXME: need a more general mechanism for this, since this
        * helptext needs to be shown in all possible req source types. */
       requirement_vector_iterate(&get_improvement_type(j)->reqs, preq) {
-	if (preq->source.type == REQ_BUILDING
-	    && preq->source.value.building == i) {
+	if (preq->source.type == REQ_TECH
+	    && preq->source.value.tech == i) {
 	  hbox = gtk_hbox_new(FALSE, 0);
 	  gtk_container_add(GTK_CONTAINER(help_vbox), hbox);
 	  w = gtk_label_new(_("Allows"));
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to