summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-02 14:32:23 +0000
committerrubidium <rubidium@openttd.org>2007-02-02 14:32:23 +0000
commit904088f2f9d99f58c9a8557504439677fa308c86 (patch)
treeecea1dd6513db304a25e2989862afa0aafd1881e /src/window.cpp
parentbe26fbcbb313edc21e53883bf45cd613b4b4755e (diff)
downloadopenttd-904088f2f9d99f58c9a8557504439677fa308c86.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/window.cpp')
-rw-r--r--src/window.cpp1
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);
}