mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r6627) -Fix r6624: fixed some warnings
Now it happened again. Somebody got warnings, that I didn't get... I will look into this issue
This commit is contained in:
2
order.h
2
order.h
@@ -191,6 +191,8 @@ static inline Order UnpackOrder(uint32 packed)
|
|||||||
order.dest = GB(packed, 16, 16);
|
order.dest = GB(packed, 16, 16);
|
||||||
order.next = NULL;
|
order.next = NULL;
|
||||||
order.index = 0; // avoid compiler warning
|
order.index = 0; // avoid compiler warning
|
||||||
|
order.refit_cargo = CT_INVALID;
|
||||||
|
order.refit_subtype = 0;
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -57,6 +57,9 @@ Order UnpackOldOrder(uint16 packed)
|
|||||||
order.flags = 0;
|
order.flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
order.refit_cargo = CT_INVALID;
|
||||||
|
order.refit_subtype = 0;
|
||||||
|
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,6 +76,8 @@ static Order UnpackVersion4Order(uint16 packed)
|
|||||||
order.dest = GB(packed, 8, 8);
|
order.dest = GB(packed, 8, 8);
|
||||||
order.next = NULL;
|
order.next = NULL;
|
||||||
order.index = 0; // avoid compiler warning
|
order.index = 0; // avoid compiler warning
|
||||||
|
order.refit_cargo = CT_INVALID;
|
||||||
|
order.refit_subtype = 0;
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -215,6 +215,8 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
|||||||
Order order;
|
Order order;
|
||||||
order.next = NULL;
|
order.next = NULL;
|
||||||
order.index = 0;
|
order.index = 0;
|
||||||
|
order.refit_cargo = CT_INVALID;
|
||||||
|
order.refit_subtype = 0;
|
||||||
|
|
||||||
// check depot first
|
// check depot first
|
||||||
if (_patches.gotodepot) {
|
if (_patches.gotodepot) {
|
||||||
|
Reference in New Issue
Block a user