Core/Misc: Fix static analysis issues
(cherry picked from commit 486b03234304526d8f7d66ff0d99ea3de975745e)
This commit is contained in:
1 parent
4c658cf2da
commit
8746d9f56a
1 file changed
+2
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user