only fclose(f) a file once, to avoid a crash on Linux

This commit is contained in:
erwincoumans
2013-05-23 09:54:54 -07:00
parent 98a877a80d
commit a2553cbdad

View File

@@ -173,14 +173,16 @@ void ConcaveScene::createConcaveMesh(const ConstructionInfo& ci, const char* fil
f = fopen(relativeFileName,"r");
if (f)
{
fclose(f);
break;
}
}
}
if (f)
{
fclose(f);
f=0;
}
else
return;