From be822ef9767392bff5f005e5d3f3a959016337db Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 12 Jul 2007 07:53:53 +0000 Subject: (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. --- src/newgrf_commons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2