(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:
truelight
2005-01-16 14:42:53 +00:00
parent be5a832db3
commit 8e404a26f6
5 changed files with 8 additions and 6 deletions

View File

@@ -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 */