summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-01-29 20:06:26 +0000
committertruelight <truelight@openttd.org>2006-01-29 20:06:26 +0000
commit8b8ef85ccb53a7e06e9e833d889d574eaada554f (patch)
treef76f4384ef90e742afb12c70e4a701edcba0ecc0
parent524934bbf63346a6a3c300fe6ca8f9cfd6a65e96 (diff)
downloadopenttd-8b8ef85ccb53a7e06e9e833d889d574eaada554f.tar.xz
(svn r3477) -Fix: a fix that fixed the last commit.. I shouldn't be committing here :)
-rw-r--r--order_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/order_gui.c b/order_gui.c
index 258f8b590..50c45b16b 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -191,8 +191,6 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
Order order;
int st_index;
- order.station = INVALID_STATION;
-
// check depot first
if (_patches.gotodepot) {
switch (GetTileType(tile)) {
@@ -278,6 +276,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
// not found
order.type = OT_NOTHING;
order.flags = 0;
+ order.station = INVALID_STATION;
return order;
}