Check if .map file exists

This commit is contained in:
Antoine Pilote
2024-09-03 16:41:52 -04:00
parent 55a2403b88
commit be725f52f2

View File

@@ -268,7 +268,7 @@ namespace Nuake
for (const auto& e : view)
{
auto& map = view.get<QuakeMapComponent>(e);
if (map.AutoRebuild && !map.Path.empty())
if (map.AutoRebuild && !map.Path.empty() && FileSystem::FileExists(map.Path))
{
if (auto file = FileSystem::GetFile(map.Path); file->IsValid() && file->GetHasBeenModified())
{