From 75330bb057659195a9bb50989a5cc9ef19094525 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Sat, 7 May 2022 19:44:20 +0200 Subject: [PATCH] Fix: Main thread can reallocate data of worker threads --- src/openrct2/core/FileIndex.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/core/FileIndex.hpp b/src/openrct2/core/FileIndex.hpp index d654f40ec0..0d01da1e42 100644 --- a/src/openrct2/core/FileIndex.hpp +++ b/src/openrct2/core/FileIndex.hpp @@ -204,7 +204,7 @@ private: JobPool jobPool; std::mutex printLock; // For verbose prints. - std::vector> containers; + std::list> containers; size_t stepSize = 100; // Handpicked, seems to work well with 4/8 cores.