Author: cazfi
Date: Tue Apr 28 19:05:10 2015
New Revision: 28940

URL: http://svn.gna.org/viewcvs/freeciv?rev=28940&view=rev
Log:
Fixed sdl-clients' crash when changing player.

See bug #23540

Modified:
    branches/S2_5/client/gui-sdl/messagewin.c

Modified: branches/S2_5/client/gui-sdl/messagewin.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-sdl/messagewin.c?rev=28940&r1=28939&r2=28940&view=diff
==============================================================================
--- branches/S2_5/client/gui-sdl/messagewin.c   (original)
+++ branches/S2_5/client/gui-sdl/messagewin.c   Tue Apr 28 19:05:10 2015
@@ -102,6 +102,10 @@
   SDL_Rect area = {0, 0, 0, 0};
   bool create;
   int label_width;
+
+  if (pMsg_Dlg == NULL) {
+    meswin_dialog_popup(TRUE);
+  }
 
   msg_count = meswin_get_num_messages();
   current_count = pMsg_Dlg->pScroll->count;


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

Reply via email to