summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-07 15:53:58 +0000
committersmatz <smatz@openttd.org>2008-05-07 15:53:58 +0000
commit7927da8faba731f8550de989caff2e18ffefed39 (patch)
treef35bd6dd41b3f38939ae87e83a7b3deface8ada5 /src/toolbar_gui.cpp
parent97cb66d099f02a90e05554bcb4b9cb82134de7d7 (diff)
downloadopenttd-7927da8faba731f8550de989caff2e18ffefed39.tar.xz
(svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r--src/toolbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 8d0c3d2d6..422687d2e 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1326,7 +1326,7 @@ static void PlayerMenuWndProc(Window *w, WindowEvent *e)
case WE_DESTROY: {
Window *v = FindWindowById(WC_MAIN_TOOLBAR, 0);
v->RaiseWidget(WP(w, menu_d).main_button);
- w->SetDirty();
+ v->SetDirty();
return;
}