Author: mir3x
Date: Mon Nov 16 20:05:11 2015
New Revision: 30638

URL: http://svn.gna.org/viewcvs/freeciv?rev=30638&view=rev
Log:
update_unit_info_label could lead to crash in qt-client 
when observing in endgame. 
Fixed.

See bug #24069


Modified:
    branches/S2_5/client/gui-qt/mapview.cpp

Modified: branches/S2_5/client/gui-qt/mapview.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/mapview.cpp?rev=30638&r1=30637&r2=30638&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/mapview.cpp     (original)
+++ branches/S2_5/client/gui-qt/mapview.cpp     Mon Nov 16 20:05:11 2015
@@ -1586,7 +1586,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

Reply via email to