Mercurial > hg > openttd
changeset 7235:f78c98216203 draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 12 Jul 2007 07:53:53 +0000 |
parents | 7d1c55a8db8f |
children | d48e6589467c |
files | src/newgrf_commons.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -73,7 +73,7 @@ { 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;