From c2ae2334ec6e71466c61d059936b07770dc71bbf Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 16 Jan 2008 16:52:50 +0000 Subject: (svn r11878) -Fix: Crash in MP in vehicle group window if the currently selected group is deleted by another player. --- src/group_gui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 9e97db1be..1d74002c3 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -299,6 +299,7 @@ static void GroupWndProc(Window *w, WindowEvent *e) case WE_INVALIDATE_DATA: gv->l.flags |= VL_REBUILD; gl->l.flags |= VL_REBUILD; + if (!IsValidGroupID(gv->group_sel)) gv->group_sel = ALL_GROUP; UpdateGroupActionDropdown(w, gv->group_sel); SetWindowDirty(w); break; -- cgit v1.2.3-70-g09d2