From 871107f52952ee59c353feab933126ed206e60bf Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 17 May 2009 01:00:56 +0000 Subject: (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) --- src/newgrf_industries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_industries.cpp') diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index 2cf283574..4b54a2e93 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -214,7 +214,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par byte colours; bool is_ai = false; - if (IsValidCompanyID(industry->founder)) { + if (Company::IsValidID(industry->founder)) { const Company *c = Company::Get(industry->founder); const Livery *l = &c->livery[LS_DEFAULT]; -- cgit v1.2.3-54-g00ecf