Author: cazfi
Date: Tue Apr 28 19:05:03 2015
New Revision: 28939

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

See bug #23540

Modified:
    branches/S2_6/client/gui-sdl/messagewin.c
    branches/S2_6/client/gui-sdl2/messagewin.c

Modified: branches/S2_6/client/gui-sdl/messagewin.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl/messagewin.c?rev=28939&r1=28938&r2=28939&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl/messagewin.c   (original)
+++ branches/S2_6/client/gui-sdl/messagewin.c   Tue Apr 28 19:05:03 2015
@@ -103,6 +103,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;

Modified: branches/S2_6/client/gui-sdl2/messagewin.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl2/messagewin.c?rev=28939&r1=28938&r2=28939&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl2/messagewin.c  (original)
+++ branches/S2_6/client/gui-sdl2/messagewin.c  Tue Apr 28 19:05:03 2015
@@ -105,6 +105,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