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_house.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf_house.cpp') diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 3179edbfd..15052c7b5 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -518,7 +518,7 @@ bool CanDeleteHouse(TileIndex tile) /* Humans are always allowed to remove buildings, as is water and * anyone using the scenario editor. */ - if ((IsValidCompanyID(_current_company) && IsHumanCompany(_current_company)) + if ((Company::IsValidID(_current_company) && IsHumanCompany(_current_company)) || _current_company == OWNER_WATER || _current_company == OWNER_NONE) return true; if (HasBit(hs->callback_mask, CBM_HOUSE_DENY_DESTRUCTION)) { -- cgit v1.2.3-54-g00ecf