feat(Common/Collision): missing fclose (#11753)
This commit is contained in:
parent
d94f8b5970
commit
324112ff4f
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue