From 61647226f4108f951bd78f1b7ef26a52db9083c3 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 13 Dec 2016 22:19:18 +0100 Subject: [PATCH] [Materials] Use reader to hopefully prevent concurrency errors --- src/Components/Modules/Materials.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/Materials.cpp b/src/Components/Modules/Materials.cpp index c9b4e744..d8cf988e 100644 --- a/src/Components/Modules/Materials.cpp +++ b/src/Components/Modules/Materials.cpp @@ -100,7 +100,7 @@ namespace Components std::string newImage = image; Utils::String::Replace(newImage, "preview_", "loadscreen_"); - if (FileSystem::File(fmt::sprintf("images/%s.iwi", newImage.data())).exists()) + if (FileSystem::FileReader(fmt::sprintf("images/%s.iwi", newImage.data())).exists()) { image = Utils::String::VA("%s", newImage.data()); }