Author: sveinung Date: Sun May 3 17:10:44 2015 New Revision: 28971 URL: http://svn.gna.org/viewcvs/freeciv?rev=28971&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: branches/S2_6/client/gui-qt/menu.cpp Modified: branches/S2_6/client/gui-qt/menu.cpp URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/menu.cpp?rev=28971&r1=28970&r2=28971&view=diff ============================================================================== --- branches/S2_6/client/gui-qt/menu.cpp (original) +++ branches/S2_6/client/gui-qt/menu.cpp Sun May 3 17:10:44 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