Author: mir3x Date: Sat Jan 2 01:49:32 2016 New Revision: 31304 URL: http://svn.gna.org/viewcvs/freeciv?rev=31304&view=rev Log: Fixed crash in qt-client when investigating enemy city, and there were some units inside.
See bug #24241 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=31304&r1=31303&r2=31304&view=diff ============================================================================== --- branches/S2_6/client/gui-qt/citydlg.cpp (original) +++ branches/S2_6/client/gui-qt/citydlg.cpp Sat Jan 2 01:49:32 2016 @@ -179,6 +179,9 @@ { struct unit_list *qunits; + if (unit_owner(qunit) != client_player() || !can_client_issue_orders()) { + return; + } qunits = unit_list_new(); unit_list_append(qunits, qunit); activate = new QAction(_("Activate unit"), this); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits