Core: merged some analysis issue fixup commits from master and 335

This commit is contained in:
Ovahlord
2019-02-18 04:15:05 +01:00
parent 6d174c7e3b
commit f763095de9
4 changed files with 7 additions and 4 deletions

View File

@@ -275,7 +275,10 @@ namespace VMAP
}
FILE* tf = OpenMapTileFile(basePath, mapID, tileX, tileY, vm).File;
if (!tf)
result = LoadResult::FileNotFound;
{
fclose(rf);
return LoadResult::FileNotFound;
}
else
{
if (!readChunk(tf, chunk, VMAP_MAGIC, 8))