summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-12 07:53:53 +0000
committerrubidium <rubidium@openttd.org>2007-07-12 07:53:53 +0000
commitb779959c279d4d65ebde6a1ca1d601a1ba896e32 (patch)
treed663b284b66313b25071e66534e559a5dd3808aa /src
parent0c6f628fa6607305af3011ea30dccc74be098e77 (diff)
downloadopenttd-b779959c279d4d65ebde6a1ca1d601a1ba896e32.tar.xz
(svn r10516) -Fix: if doing a lookup for a ID, scan the whole range instead of only the "new" ones because the old ones could be overriden too.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_commons.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp
index 6fc0103be..2b1873f7a 100644
--- a/src/newgrf_commons.cpp
+++ b/src/newgrf_commons.cpp
@@ -73,7 +73,7 @@ uint16 OverrideManagerBase::GetID(uint8 grf_local_id, uint32 grfid)
{
const EntityIDMapping *map;
- for (uint16 id = max_offset; id < max_new_entities; id++) {
+ for (uint16 id = 0; id < max_new_entities; id++) {
map = &mapping_ID[id];
if (map->entity_id == grf_local_id && map->grfid == grfid) {
return id;