summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-06-12 20:42:23 +0000
committerterkhen <terkhen@openttd.org>2011-06-12 20:42:23 +0000
commit9f55abf51aac0f408e60d905fb2ac1b8a1405bb9 (patch)
treedd934740de768e32320cd9f0605627e1d478c5dc /src/newgrf_house.cpp
parent281bed03f4c7e7021a0b7c079cefe246f56e3fb9 (diff)
downloadopenttd-9f55abf51aac0f408e60d905fb2ac1b8a1405bb9.tar.xz
(svn r22566) -Codechange: Define and use OverrideManagerBase::GetGRFID function.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 52eb7b286..fd0281e4e 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -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);
}
}