mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning
This commit is contained in:
parent
faae8f0177
commit
5991c5195c
@ -1386,7 +1386,7 @@ bool LoadOldVehicle(LoadgameState *ls, int num)
|
|||||||
}
|
}
|
||||||
v->current_order.AssignOrder(UnpackOldOrder(_old_order));
|
v->current_order.AssignOrder(UnpackOldOrder(_old_order));
|
||||||
|
|
||||||
if (_old_next_ptr != 0xFFFF) v->next = (Vehicle *)_old_next_ptr;
|
if (_old_next_ptr != 0xFFFF) v->next = (Vehicle *)(size_t)_old_next_ptr;
|
||||||
|
|
||||||
if (_cargo_count != 0) {
|
if (_cargo_count != 0) {
|
||||||
CargoPacket *cp = new CargoPacket((_cargo_source == 0xFF) ? INVALID_STATION : _cargo_source, _cargo_count);
|
CargoPacket *cp = new CargoPacket((_cargo_source == 0xFF) ? INVALID_STATION : _cargo_source, _cargo_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user