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 | 904088f2f9d99f58c9a8557504439677fa308c86 (patch) | |
tree | ecea1dd6513db304a25e2989862afa0aafd1881e /src | |
parent | be26fbcbb313edc21e53883bf45cd613b4b4755e (diff) | |
download | openttd-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')
-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); } |