Removed a small optimization that caused some issues under rare circumstances

This commit is contained in:
Leon Styhre 2023-04-10 20:28:29 +02:00
parent 0f0f24887e
commit 499fecf100

View file

@ -133,9 +133,6 @@ void ImageComponent::setGameOverrideImage(const std::string& basename, const std
if (mGameOverridePath == "")
return;
if (!Utils::FileSystem::exists(mGameOverridePath + system))
return;
const std::string imageFilePath {mGameOverridePath + system + "/" + basename};
for (auto& extension : sSupportedOverrideExtensions) {
if (Utils::FileSystem::exists(imageFilePath + extension)) {