mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r11424) -Fix: an override can be set only once
This commit is contained in:
parent
60ccc5bbce
commit
de7f58d5d4
@ -50,6 +50,8 @@ OverrideManagerBase::~OverrideManagerBase()
|
||||
void OverrideManagerBase::Add(uint8 local_id, uint32 grfid, uint entity_type)
|
||||
{
|
||||
assert(entity_type < max_offset);
|
||||
/* An override can be set only once */
|
||||
if (entity_overrides[entity_type] != invalid_ID) return;
|
||||
entity_overrides[entity_type] = local_id;
|
||||
grfid_overrides[entity_type] = grfid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user