diff --git a/src/Engine/Rendering/Util/CommonFunctions.cpp b/src/Engine/Rendering/Util/CommonFunctions.cpp index 913e005e..51529a72 100644 --- a/src/Engine/Rendering/Util/CommonFunctions.cpp +++ b/src/Engine/Rendering/Util/CommonFunctions.cpp @@ -12,7 +12,7 @@ Texture* CommonFunctions::LoadTexture(std::string path, bool threaded) } catch (const Resource::StillLoadingException&) { img = ResourceManager::Load("Textures/Core/ErrorTexture.png"); } catch (const std::exception&) { - img = nullptr; + img = ResourceManager::Load("Textures/Core/ErrorTexture.png"); } return img;