Author: sveinung
Date: Sun May  3 16:59:14 2015
New Revision: 28970

URL: http://svn.gna.org/viewcvs/freeciv?rev=28970&view=rev
Log:
Qt client: Fix found vs join city menu text.

If a selected unit is in a city city_on_tile is set to true. Initialize it
to false to make sure it only will be true in those cases.

On my system the missing initialization made the menu talk about joining a
city in stead of founding one when the selected unit was outside a city.

See bug #23557

Modified:
    trunk/client/gui-qt/menu.cpp

Modified: trunk/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/menu.cpp?rev=28970&r1=28969&r2=28970&view=diff
==============================================================================
--- trunk/client/gui-qt/menu.cpp        (original)
+++ trunk/client/gui-qt/menu.cpp        Sun May  3 16:59:14 2015
@@ -934,7 +934,7 @@
   struct road_type *proad;
   struct extra_type *tgt;
   bool any_cities = false;
-  bool city_on_tile;
+  bool city_on_tile = false;
   bool units_all_same_tile = true;
   const struct tile *ptile = NULL;
   struct terrain *pterrain;


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to