From cedb07bba3c885b5812244f02bdf5cee3e9cc05f Mon Sep 17 00:00:00 2001 From: alberth Date: Thu, 30 Dec 2010 13:18:04 +0000 Subject: (svn r21666) -Codechange: Use GetCallbackWnd at more places. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle_gui.cpp') 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; } -- cgit v1.2.3-70-g09d2