mirror of https://github.com/OpenTTD/OpenTTD
(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.
parent
5f7f99e381
commit
be822ef976
|
@ -73,7 +73,7 @@ uint16 OverrideManagerBase::GetID(uint8 grf_local_id, uint32 grfid)
|
||||||
{
|
{
|
||||||
const EntityIDMapping *map;
|
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];
|
map = &mapping_ID[id];
|
||||||
if (map->entity_id == grf_local_id && map->grfid == grfid) {
|
if (map->entity_id == grf_local_id && map->grfid == grfid) {
|
||||||
return id;
|
return id;
|
||||||
|
|
Loading…
Reference in New Issue