diff options
author | alberth <alberth@openttd.org> | 2010-12-30 13:18:04 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-12-30 13:18:04 +0000 |
commit | cedb07bba3c885b5812244f02bdf5cee3e9cc05f (patch) | |
tree | a2681f7ab375278a6d92999722fb9c30cae796ff /src/vehicle_gui.cpp | |
parent | 22a13850cb0640d4fdfd8da66bc46ce20e2eb309 (diff) | |
download | openttd-cedb07bba3c885b5812244f02bdf5cee3e9cc05f.tar.xz |
(svn r21666) -Codechange: Use GetCallbackWnd at more places.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 2 |
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; } |