(svn r20241) -Codechange: Move variable declarations to their first use.

This commit is contained in:
alberth
2010-07-30 10:39:24 +00:00
parent 07208fdc90
commit 3cd9351618
4 changed files with 44 additions and 75 deletions

View File

@@ -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;