Core&Tools: Fix multiple issues found by a static code coverage tool

This commit is contained in:
Nay
2013-08-26 02:00:18 +01:00
parent a4fcbd1a36
commit 8eaf763235
10 changed files with 20 additions and 17 deletions
+9
View File
@@ -246,11 +246,20 @@ namespace MMAP
printf("Building mesh from file\n");
int tileX, tileY, mapId;
if (fread(&mapId, sizeof(int), 1, file) != 1)
{
fclose(file);
return;
}
if (fread(&tileX, sizeof(int), 1, file) != 1)
{
fclose(file);
return;
}
if (fread(&tileY, sizeof(int), 1, file) != 1)
{
fclose(file);
return;
}
dtNavMesh* navMesh = NULL;
buildNavMesh(mapId, navMesh);