(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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user