summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-05-13 05:34:21 +0000
committersmatz <smatz@openttd.org>2010-05-13 05:34:21 +0000
commitd568a4258bedec709501cf048bf0015030dcd20d (patch)
tree05d00a734b06d8eac2d7d3cf4c6b34636930e740 /src/saveload
parentb229acce2529fbaca8e54cfe3fadcfb5429d381b (diff)
downloadopenttd-d568a4258bedec709501cf048bf0015030dcd20d.tar.xz
(svn r19806) -Codechange: silence one warning
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/depot_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/depot_sl.cpp b/src/saveload/depot_sl.cpp
index a0b32eaac..c42902af5 100644
--- a/src/saveload/depot_sl.cpp
+++ b/src/saveload/depot_sl.cpp
@@ -46,7 +46,7 @@ static void Load_DEPT()
SlObject(depot, _depot_desc);
/* Set the town 'pointer' so we can restore it later. */
- if (CheckSavegameVersion(141)) depot->town = (Town *)_town_index;
+ if (CheckSavegameVersion(141)) depot->town = (Town *)(size_t)_town_index;
}
}