summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-12-08 03:10:50 +0000
committerbelugas <belugas@openttd.org>2007-12-08 03:10:50 +0000
commit73c58d8a409d7e5f3dbb864be893a1c0b34defd6 (patch)
tree4035aa66fcd85e5b6485927f6941345900ada009 /src/depot_gui.cpp
parentb23f824f1848186dd37ee7616a1df58b439b5315 (diff)
downloadopenttd-73c58d8a409d7e5f3dbb864be893a1c0b34defd6.tar.xz
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 17d8b06d1..3e9cf359d 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -916,7 +916,7 @@ static void DepotWndProc(Window *w, WindowEvent *e)
if (w->IsWidgetDisabled(e->we.click.widget)) return;
if (WP(w, depot_d).sel == INVALID_VEHICLE) return;
- HandleButtonClick(w, e->we.click.widget);
+ w->HandleButtonClick(e->we.click.widget);
v = GetVehicle(WP(w, depot_d).sel);
WP(w, depot_d).sel = INVALID_VEHICLE;