Fixed cache creation

Seems to sometimes be needed on MSVS at least
This commit is contained in:
Lemongrass3110 2022-01-02 22:26:24 +01:00
parent b28bf2d1ff
commit bdb2ae3446

View File

@ -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