NULL path bug fix

This commit is contained in:
Jack Andersen 2017-08-17 17:18:52 -10:00
parent f761810e8c
commit 6d997e4ffa
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ static std::atomic_bool BlenderFirstInit(false);
static bool RegFileExists(const hecl::SystemChar* path)
{
if (!path)
return false;
hecl::Sstat theStat;
return !hecl::Stat(path, &theStat) && S_ISREG(theStat.st_mode);
}