mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
(svn r23841) -Fix: Clear NewGRF vehicle cache when their owner changes. (esp. vehicle var 43)
This commit is contained in:
parent
a18e077006
commit
f591787e4a
@ -419,7 +419,10 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
|
||||
assert(new_owner != INVALID_OWNER);
|
||||
|
||||
v->owner = new_owner;
|
||||
|
||||
/* Owner changes, clear cache */
|
||||
v->colourmap = PAL_NONE;
|
||||
v->InvalidateNewGRFCache();
|
||||
|
||||
if (v->IsEngineCountable()) {
|
||||
GroupStatistics::CountEngine(v, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user