From 84b7f2eb2088dba58bfb5240c05c8524bc4960ec Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 23 Aug 2023 21:48:28 +0100 Subject: [PATCH] Fix 19835b51: GoodsEntryData was not zero-inited --- src/station_base.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/station_base.h b/src/station_base.h index 6d059821ad..acbe556062 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -20,6 +20,7 @@ #include "3rdparty/cpp-btree/btree_map.h" #include "3rdparty/cpp-btree/btree_set.h" #include "bitmap_type.h" +#include "core/alloc_type.hpp" #include "core/endian_type.hpp" #include "strings_type.h" #include @@ -504,7 +505,7 @@ public: void SortStorage(); }; -struct GoodsEntryData { +struct GoodsEntryData : ZeroedMemoryAllocator { StationCargoList cargo; ///< The cargo packets of cargo waiting in this station FlowStatMap flows; ///< Planned flows through this station.