summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-19 15:36:35 +0000
committerrubidium <rubidium@openttd.org>2009-10-19 15:36:35 +0000
commit7f6d9d8c110e1232b184b8226a306699eabefcd2 (patch)
treeb457e741667b10d94a6b776c3d27319edb9328b6
parent08ac51fada56ee84a98ced07c2ec9a1b16bd8692 (diff)
downloadopenttd-7f6d9d8c110e1232b184b8226a306699eabefcd2.tar.xz
(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.
-rw-r--r--src/cargopacket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.h b/src/cargopacket.h
index 692cbb91b..13970e18e 100644
--- a/src/cargopacket.h
+++ b/src/cargopacket.h
@@ -222,7 +222,7 @@ protected:
public:
/** Create the cargo list */
- FORCEINLINE CargoList() { this->InvalidateCache(); }
+ CargoList() {}
/** And destroy it ("frees" all cargo packets) */
~CargoList();