summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-30 13:18:04 +0000
committeralberth <alberth@openttd.org>2010-12-30 13:18:04 +0000
commitcedb07bba3c885b5812244f02bdf5cee3e9cc05f (patch)
treea2681f7ab375278a6d92999722fb9c30cae796ff /src/vehicle_gui.cpp
parent22a13850cb0640d4fdfd8da66bc46ce20e2eb309 (diff)
downloadopenttd-cedb07bba3c885b5812244f02bdf5cee3e9cc05f.tar.xz
(svn r21666) -Codechange: Use GetCallbackWnd at more places.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 35143e8fc..98d5ad95d 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -2585,7 +2585,7 @@ bool VehicleClicked(const Vehicle *v)
v = v->First();
if (!v->IsPrimaryVehicle()) return false;
- FindWindowById(_thd.window_class, _thd.window_number)->OnVehicleSelect(v);
+ _thd.GetCallbackWnd()->OnVehicleSelect(v);
return true;
}