From 2dd77d0ef941c7ba67c16b41b9da2eca66290669 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 30 Jul 2010 10:39:24 +0000 Subject: (svn r20241) -Codechange: Move variable declarations to their first use. --- src/vehicle_gui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/vehicle_gui.cpp') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 9a9d869fc..3e71c7b7c 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1210,12 +1210,10 @@ public: return; case VLW_WIDGET_LIST: { // Matrix to show vehicles - const Vehicle *v; uint id_v = this->vscroll.GetScrolledRowFromWidget(pt.y, this, VLW_WIDGET_LIST); if (id_v >= this->vehicles.Length()) return; // click out of list bound - v = this->vehicles[id_v]; - + const Vehicle *v = this->vehicles[id_v]; ShowVehicleViewWindow(v); } break; -- cgit v1.2.3-54-g00ecf