diff options
author | rubidium <rubidium@openttd.org> | 2009-10-19 15:36:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-19 15:36:35 +0000 |
commit | 7f6d9d8c110e1232b184b8226a306699eabefcd2 (patch) | |
tree | b457e741667b10d94a6b776c3d27319edb9328b6 | |
parent | 08ac51fada56ee84a98ced07c2ec9a1b16bd8692 (diff) | |
download | openttd-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.h | 2 |
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(); |