Author: mir3x
Date: Mon Dec 28 10:05:07 2015
New Revision: 31234

URL: http://svn.gna.org/viewcvs/freeciv?rev=31234&view=rev
Log:
Fixed quick buying from map, when user couldnt afford target.

See bug #24225


Modified:
    branches/S2_6/client/gui-qt/citydlg.cpp

Modified: branches/S2_6/client/gui-qt/citydlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/citydlg.cpp?rev=31234&r1=31233&r2=31234&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/citydlg.cpp     (original)
+++ branches/S2_6/client/gui-qt/citydlg.cpp     Mon Dec 28 10:05:07 2015
@@ -3168,7 +3168,7 @@
     switch (when_change) {
     case 0: /*Change current tech*/
       city_change_production(pw_city, *target);
-      if (buy_it) {
+      if (city_can_buy(pw_city) && buy_it) {
         city_buy_production(pw_city);
       }
       break;


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

Reply via email to