mirror of https://github.com/OpenTTD/OpenTTD
(svn r4663) - Backport from trunk (r4195):
Codechange: Initialize order variables to avoid a compiler warning.release/0.4
parent
8bfb955d4b
commit
a32fdb390f
|
@ -191,6 +191,9 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
||||||
Order order;
|
Order order;
|
||||||
int st_index;
|
int st_index;
|
||||||
|
|
||||||
|
order.next = NULL;
|
||||||
|
order.index = 0;
|
||||||
|
|
||||||
// check depot first
|
// check depot first
|
||||||
if (_patches.gotodepot) {
|
if (_patches.gotodepot) {
|
||||||
switch (GetTileType(tile)) {
|
switch (GetTileType(tile)) {
|
||||||
|
|
Loading…
Reference in New Issue