1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 01:29:10 +00:00

(svn r8533) -Fix: segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar.

This commit is contained in:
rubidium
2007-02-02 14:32:23 +00:00
parent be26fbcbb3
commit 904088f2f9

View File

@@ -1915,6 +1915,7 @@ restart_search:
/* Delete all always on-top windows to get an empty screen */ /* Delete all always on-top windows to get an empty screen */
void HideVitalWindows(void) void HideVitalWindows(void)
{ {
DeleteWindowById(WC_TOOLBAR_MENU, 0);
DeleteWindowById(WC_MAIN_TOOLBAR, 0); DeleteWindowById(WC_MAIN_TOOLBAR, 0);
DeleteWindowById(WC_STATUS_BAR, 0); DeleteWindowById(WC_STATUS_BAR, 0);
} }