(svn r4663) - Backport from trunk (r4195):

Codechange: Initialize order variables to avoid a compiler warning.
This commit is contained in:
Darkvater 2006-05-02 12:47:51 +00:00
parent 8bfb955d4b
commit a32fdb390f
1 changed files with 3 additions and 0 deletions

View File

@ -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)) {