diff options
author | rubidium <rubidium@openttd.org> | 2007-02-02 14:32:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-02 14:32:23 +0000 |
commit | 6d50c66d67ae772ca4d642943279528b00158ed2 (patch) | |
tree | ecea1dd6513db304a25e2989862afa0aafd1881e /src | |
parent | 097b12f9986727a37c8fbcd2fccfd569825853e3 (diff) | |
download | openttd-6d50c66d67ae772ca4d642943279528b00158ed2.tar.xz |
(svn r8533) -Fix: segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index 045a80c65..80bbf1ea9 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1915,6 +1915,7 @@ restart_search: /* Delete all always on-top windows to get an empty screen */ void HideVitalWindows(void) { + DeleteWindowById(WC_TOOLBAR_MENU, 0); DeleteWindowById(WC_MAIN_TOOLBAR, 0); DeleteWindowById(WC_STATUS_BAR, 0); } |