diff options
Diffstat (limited to 'ship_gui.c')
-rw-r--r-- | ship_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ship_gui.c b/ship_gui.c index 96e2db62d..e8fd59c71 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -996,7 +996,7 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e) 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_Ship); @@ -1048,7 +1048,7 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e) 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_Ship); |