Author: sveinung
Date: Sun May  3 17:11:15 2015
New Revision: 28972

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: branches/S2_5/client/gui-qt/menu.cpp
--- branches/S2_5/client/gui-qt/menu.cpp        (original)
+++ branches/S2_5/client/gui-qt/menu.cpp        Sun May  3 17:11:15 2015
@@ -930,7 +930,7 @@
   struct road_type *proad;
   struct act_tgt 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

Reply via email to