mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r11878) -Fix: Crash in MP in vehicle group window if the currently selected group is deleted by another player.
This commit is contained in:
parent
692fbb3c05
commit
019ffe29b8
@ -299,6 +299,7 @@ static void GroupWndProc(Window *w, WindowEvent *e)
|
|||||||
case WE_INVALIDATE_DATA:
|
case WE_INVALIDATE_DATA:
|
||||||
gv->l.flags |= VL_REBUILD;
|
gv->l.flags |= VL_REBUILD;
|
||||||
gl->l.flags |= VL_REBUILD;
|
gl->l.flags |= VL_REBUILD;
|
||||||
|
if (!IsValidGroupID(gv->group_sel)) gv->group_sel = ALL_GROUP;
|
||||||
UpdateGroupActionDropdown(w, gv->group_sel);
|
UpdateGroupActionDropdown(w, gv->group_sel);
|
||||||
SetWindowDirty(w);
|
SetWindowDirty(w);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user