mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(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.
This commit is contained in:
@@ -222,7 +222,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/** Create the cargo list */
|
/** Create the cargo list */
|
||||||
FORCEINLINE CargoList() { this->InvalidateCache(); }
|
CargoList() {}
|
||||||
/** And destroy it ("frees" all cargo packets) */
|
/** And destroy it ("frees" all cargo packets) */
|
||||||
~CargoList();
|
~CargoList();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user