Check if .map file exists
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user