From 5156f6b360b1611ca9220ae3ef091b7f7c17d645 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 23 Jan 2005 13:08:01 +0000 Subject: (svn r1609) -Codechange: converted the last order-loop with FOR_VEHICLE_ORDERS --- ship_gui.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ship_gui.c b/ship_gui.c index 829a6ccf3..6966a7095 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -868,9 +868,8 @@ static void DrawSmallOrderList(Vehicle *v, int x, int y) { int sel, i = 0; sel = v->cur_order_index; - order = v->orders; - while (order != NULL) { + FOR_VEHICLE_ORDERS(v, order) { if (sel == 0) { _stringwidth_base = 0xE0; DoDrawString( "\xAF", x-6, y, 16); @@ -888,8 +887,6 @@ static void DrawSmallOrderList(Vehicle *v, int x, int y) { break; } } - - order = order->next; } } -- cgit v1.2.3-70-g09d2