summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-05-26 23:37:34 +0000
committerglx <glx@openttd.org>2009-05-26 23:37:34 +0000
commit5991c5195ca4140bcaa4e5683a148038d8cf926d (patch)
tree16882071d244b70bcdfd027d30511a2bc4365ddd
parentfaae8f0177a997ec49796e3275bd5a10bc26a939 (diff)
downloadopenttd-5991c5195ca4140bcaa4e5683a148038d8cf926d.tar.xz
(svn r16446) -Fix (r16378): 'cast to pointer from integer of different size' warning
-rw-r--r--src/saveload/oldloader_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/oldloader_sl.cpp b/src/saveload/oldloader_sl.cpp
index 37860ba16..18815c737 100644
--- a/src/saveload/oldloader_sl.cpp
+++ b/src/saveload/oldloader_sl.cpp
@@ -1386,7 +1386,7 @@ bool LoadOldVehicle(LoadgameState *ls, int num)
}
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) {
CargoPacket *cp = new CargoPacket((_cargo_source == 0xFF) ? INVALID_STATION : _cargo_source, _cargo_count);