diff --git a/order_gui.c b/order_gui.c index 50c45b16ba..6efd6dc417 100644 --- a/order_gui.c +++ b/order_gui.c @@ -191,6 +191,9 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile) Order order; int st_index; + order.next = NULL; + order.index = 0; + // check depot first if (_patches.gotodepot) { switch (GetTileType(tile)) {