feat(Common/Collision): missing fclose (#11753)

This commit is contained in:
IntelligentQuantum
2022-05-20 02:43:06 +04:30
committed by GitHub
parent d94f8b5970
commit 324112ff4f
2 changed files with 2 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ void LoadGameObjectModelList(std::string const& dataPath)
if (fread(magic, 1, 8, model_list_file) != 8 || memcmp(magic, VMAP::VMAP_MAGIC, 8) != 0)
{
LOG_ERROR("maps", "File '{}' has wrong header, expected {}.", VMAP::GAMEOBJECT_MODELS, VMAP::VMAP_MAGIC);
fclose(model_list_file);
return;
}