summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-10-06 21:27:23 +0000
committerglx <glx@openttd.org>2006-10-06 21:27:23 +0000
commit871d1cd77b7932d70b8ccc5b783b03b086a12448 (patch)
tree98e1fb8df62611b7cc6fd8c35e099aa0cc096573
parent30e0a8e9522a3ea43fa501cd387ccf8cf962461b (diff)
downloadopenttd-871d1cd77b7932d70b8ccc5b783b03b086a12448.tar.xz
(svn r6670) -Fix r6669: SetWindowWidgetsDisableState() should disable widgets, not hide them
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 1d3bfefdb..b8a3f8d37 100644
--- a/window.c
+++ b/window.c
@@ -25,7 +25,7 @@ void CDECL SetWindowWidgetsDisabledState(Window *w, bool disab_stat, int widgets
va_start(wdg_list, widgets);
while (widgets != WIDGET_LIST_END) {
- SetWindowWidgetHiddenState(w, widgets, disab_stat);
+ SetWindowWidgetDisableState(w, widgets, disab_stat);
widgets = va_arg(wdg_list, int);
}