diff options
author | truelight <truelight@openttd.org> | 2005-01-16 14:42:53 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-16 14:42:53 +0000 |
commit | 07647737d5d52cb548662ffbec4eca3514090b18 (patch) | |
tree | 6a56912dfd4ec0a7d3c46aa7b8cd50edb2d28031 /order_gui.c | |
parent | 8493f68c96d9dbc4deaf0dac53c80a04511a2b70 (diff) | |
download | openttd-07647737d5d52cb548662ffbec4eca3514090b18.tar.xz |
(svn r1544) -Fix: SwapOrder did not use AssignOrder, which caused the saveroutine to
crash from time to time
-Codechange: added const before 'Order *' where possible
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c index ca2c3be0a..5c99bb557 100644 --- a/order_gui.c +++ b/order_gui.c @@ -387,7 +387,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) sel += w->vscroll.pos; if (_ctrl_pressed && sel < v->num_orders) { - Order *ord = GetVehicleOrder(v, sel); + const Order *ord = GetVehicleOrder(v, sel); int xy = 0; switch (ord->type) { case OT_GOTO_STATION: /* station order */ |