--- a/roadveh_gui.c Mon Aug 14 18:39:20 2006 +0000
+++ b/roadveh_gui.c Mon Aug 14 20:25:29 2006 +0000
@@ -986,7 +986,7 @@
max = min(w->vscroll.pos + w->vscroll.cap, vl->list_length);
for (i = w->vscroll.pos; i < max; ++i) {
- Vehicle *v = GetVehicle(vl->sort_list[i].index);
+ const Vehicle* v = vl->sort_list[i];
StringID str;
assert(v->type == VEH_Road && v->owner == owner);
@@ -1037,7 +1037,7 @@
if (id_v >= vl->list_length) return; // click out of list bound
- v = GetVehicle(vl->sort_list[id_v].index);
+ v = vl->sort_list[id_v];
assert(v->type == VEH_Road && v->owner == owner);