From 019ffe29b8f82b4775e54e94c9b1fdb27ee647f8 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 16 Jan 2008 16:52:50 +0000 Subject: [PATCH] (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(+) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 9e97db1be5..1d74002c33 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;