Author: mir3x Date: Mon Nov 16 20:05:30 2015 New Revision: 30640 URL: http://svn.gna.org/viewcvs/freeciv?rev=30640&view=rev Log: update_unit_info_label could lead to crash in qt-client when observing in endgame. Fixed.
See bug #24069 Modified: trunk/client/gui-qt/mapview.cpp Modified: trunk/client/gui-qt/mapview.cpp URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapview.cpp?rev=30640&r1=30639&r2=30640&view=diff ============================================================================== --- trunk/client/gui-qt/mapview.cpp (original) +++ trunk/client/gui-qt/mapview.cpp Mon Nov 16 20:05:30 2015 @@ -1590,7 +1590,8 @@ no_units = false; one_unit = true; setFixedHeight(56); - if (unit_list_size(punits) == 0) { + if (unit_list_size(punits) == 0 || punits == nullptr + || C_S_OVER == client_state()) { unit_label1 = ""; unit_label2 = ""; no_units = true; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits