Changeset - r13295:dd56059817bc
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-10-19 15:36:35
rubidium@openttd.org
(svn r17814) -Codechange: there's no need to invalidate the cache in the constructor of a CargoList; the list is empty, the CargoList is calloc-ed so all caches are 0.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/cargopacket.h
Show inline comments
 
@@ -222,7 +222,7 @@ protected:
 

	
 
public:
 
	/** Create the cargo list */
 
	FORCEINLINE CargoList() { this->InvalidateCache(); }
 
	CargoList() {}
 
	/** And destroy it ("frees" all cargo packets) */
 
	~CargoList();
 

	
0 comments (0 inline, 0 general)