Changeset - r7235:8b2058cc0122
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-07-12 07:53:53
rubidium@openttd.org
(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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_commons.cpp
Show inline comments
 
@@ -73,7 +73,7 @@ uint16 OverrideManagerBase::GetID(uint8 
 
{
 
	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;
0 comments (0 inline, 0 general)