changeset 13305:ec29b7e9b9a2 draft

(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.
author rubidium <rubidium@openttd.org>
date Mon, 19 Oct 2009 15:36:35 +0000
parents 9689c67bedea
children 668cf751db70
files src/cargopacket.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cargopacket.h
+++ b/src/cargopacket.h
@@ -222,7 +222,7 @@
 
 public:
 	/** Create the cargo list */
-	FORCEINLINE CargoList() { this->InvalidateCache(); }
+	CargoList() {}
 	/** And destroy it ("frees" all cargo packets) */
 	~CargoList();