From bdb2ae3446dc3b7965e5bf3168c7b3753010d09b Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sun, 2 Jan 2022 22:26:24 +0100 Subject: [PATCH] Fixed cache creation Seems to sometimes be needed on MSVS at least --- src/common/database.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/database.hpp b/src/common/database.hpp index e945198562..0e8142303b 100644 --- a/src/common/database.hpp +++ b/src/common/database.hpp @@ -171,6 +171,9 @@ public: } void loadingFinished() override{ + this->cache.clear(); + this->cache.resize( this->size(), nullptr ); + // Cache all known values for (auto &pair : *this) { // Calculate the key that should be used