only fclose(f) a file once, to avoid a crash on Linux
This commit is contained in:
@@ -173,14 +173,16 @@ void ConcaveScene::createConcaveMesh(const ConstructionInfo& ci, const char* fil
|
|||||||
f = fopen(relativeFileName,"r");
|
f = fopen(relativeFileName,"r");
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
fclose(f);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (f)
|
if (f)
|
||||||
|
{
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
f=0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user