summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-02 23:21:52 +0000
committerrubidium <rubidium@openttd.org>2007-08-02 23:21:52 +0000
commite4149482ec1c1d5424327983df2ebf2419ffe273 (patch)
tree492ddfe6412cdabdaaaa435390d2417c774cf096 /src/oldloader.cpp
parent549450d31a4676039e2663e66e23e2f5bae3f7f1 (diff)
downloadopenttd-e4149482ec1c1d5424327983df2ebf2419ffe273.tar.xz
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r--src/oldloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index adf3af037..f097e2b04 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -715,7 +715,7 @@ static bool LoadOldIndustry(LoadgameState *ls, int num)
i = GetIndustry(num);
if (!LoadChunk(ls, i, industry_chunk)) return false;
- if (IsValidIndustry(i)) {
+ if (i->IsValid()) {
i->town = GetTown(REMAP_TOWN_IDX(_old_town_index));
}