summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-07 18:05:49 +0000
committerglx <glx@openttd.org>2007-12-07 18:05:49 +0000
commitb00f62123960a9beaf85da92df2537b24d5c0295 (patch)
treed911871e265f9cc64abdaac46967f9c90de70315 /src/depot_gui.cpp
parent30a5f9abf3c004d381cde4248040c7698686c827 (diff)
downloadopenttd-b00f62123960a9beaf85da92df2537b24d5c0295.tar.xz
(svn r11588) -Codechange: use the new member introduced in r11551
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index e61765762..17d8b06d1 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -794,7 +794,7 @@ static void DepotWndProc(Window *w, WindowEvent *e)
break;
case DEPOT_WIDGET_CLONE: // Clone button
- InvalidateWidget(w, DEPOT_WIDGET_CLONE);
+ w->InvalidateWidget(DEPOT_WIDGET_CLONE);
w->ToggleWidgetLoweredState(DEPOT_WIDGET_CLONE);
if (w->IsWidgetLowered(DEPOT_WIDGET_CLONE)) {
@@ -856,7 +856,7 @@ static void DepotWndProc(Window *w, WindowEvent *e)
case WE_ABORT_PLACE_OBJ: {
w->RaiseWidget(DEPOT_WIDGET_CLONE);
- InvalidateWidget(w, DEPOT_WIDGET_CLONE);
+ w->InvalidateWidget(DEPOT_WIDGET_CLONE);
} break;
/* check if a vehicle in a depot was clicked.. */