Core/Misc: Fix static analysis issues

(cherry picked from commit 486b032343)
This commit is contained in:
jackpoz
2017-04-25 17:33:53 +02:00
committed by funjoker
parent 4c658cf2da
commit 8746d9f56a

View File

@@ -199,13 +199,12 @@ namespace VMAP
return false;
}
printf("Read coordinate mapping...\n");
uint32 mapID, check=0;
uint32 mapID, check;
std::map<uint32, MapSpawns> data;
while (!feof(dirf))
{
check = 0;
// read mapID, Flags, NameSet, UniqueId, Pos, Rot, Scale, Bound_lo, Bound_hi, name
check += fread(&mapID, sizeof(uint32), 1, dirf);
check = fread(&mapID, sizeof(uint32), 1, dirf);
if (check == 0) // EoF...
break;