(svn r22566) -Codechange: Define and use OverrideManagerBase::GetGRFID function.

This commit is contained in:
terkhen
2011-06-12 20:42:23 +00:00
parent 281bed03f4
commit 9f55abf51a
3 changed files with 12 additions and 1 deletions

View File

@@ -344,7 +344,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
if (house_id < NEW_HOUSE_OFFSET) return 0;
/* Checking the grffile information via HouseSpec doesn't work
* in case the newgrf was removed. */
return _house_mngr.mapping_ID[house_id].grfid;
return _house_mngr.GetGRFID(house_id);
}
}