Changeset - r18975:e36b2b15c97e
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-01-22 21:17:38
frosch@openttd.org
(svn r23841) -Fix: Clear NewGRF vehicle cache when their owner changes. (esp. vehicle var 43)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -419,7 +419,10 @@ void ChangeOwnershipOfCompanyItems(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);
0 comments (0 inline, 0 general)