summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-05 12:18:07 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-05 12:18:07 +0000
commita9478f810cb260c5f180ece9e38b2d6b4bbc94fe (patch)
tree670915c6e26a4e85873b9ac4c503fb5298a3d492
parentcdfac3d7b74e0ef019e4833130dba99af058b93a (diff)
downloadopenttd-a9478f810cb260c5f180ece9e38b2d6b4bbc94fe.tar.xz
(svn r6650) - Fix (r6619): Fix widget state setting of the rail toolbar when using hotkeys.
-rw-r--r--rail_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c
index 5eba3abbd..e7785792a 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -446,7 +446,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e)
e->we.keypress.cont = false;
_remove_button_clicked = false;
_build_railroad_button_proc[i](w);
- UpdateRemoveWidgetStatus(w, i);
+ UpdateRemoveWidgetStatus(w, i + 4);
break;
}
}