summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c2
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 */