Author: mir3x
Date: Wed Nov 25 20:05:10 2015
New Revision: 30774

URL: http://svn.gna.org/viewcvs/freeciv?rev=30774&view=rev
Log:
Fixed crash when selecting dead player in player dialog.
Reported by Jacob Nevins <jtn>.

See bug #24114


Modified:
    trunk/client/gui-qt/plrdlg.cpp

Modified: trunk/client/gui-qt/plrdlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/plrdlg.cpp?rev=30774&r1=30773&r2=30774&view=diff
==============================================================================
--- trunk/client/gui-qt/plrdlg.cpp      (original)
+++ trunk/client/gui-qt/plrdlg.cpp      Wed Nov 25 20:05:10 2015
@@ -379,7 +379,7 @@
   tech_str.clear();
   ally_str.clear();
   if (indexes.isEmpty()) {
-    plr->update_report();
+    plr->update_report(false);
     return;
   }
   index = indexes.at(0);
@@ -387,7 +387,7 @@
   pplayer = reinterpret_cast<player *>(qvar.value<void *>());
   other_player = pplayer;
   if (pplayer->is_alive == false) {
-    plr->update_report();
+    plr->update_report(false);
     return;
   }
   pcity = player_capital(pplayer);


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

Reply via email to