From e4149482ec1c1d5424327983df2ebf2419ffe273 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Aug 2007 23:21:52 +0000 Subject: (svn r10759) -Codechange: make the industry struct use the pool item class as super class. --- src/oldloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/oldloader.cpp') 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)); } -- cgit v1.2.3-54-g00ecf