aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2017-01-17 23:54:40 +0100
committerShauren <shauren.trinity@gmail.com>2017-01-17 23:54:40 +0100
commit2add03ab997af679bee3e18f12f0b2d6e5f7ad87 (patch)
tree4de08dfe5e48be39f2a6a602b64f58dd8596cf1c /src
parent6767bbc95f46df4b62c8131a39a132d3f9bb8a26 (diff)
Build fix
Diffstat (limited to 'src')
-rw-r--r--src/common/Collision/Management/MMapManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Collision/Management/MMapManager.cpp b/src/common/Collision/Management/MMapManager.cpp
index 389e0f9629f..2f417e9b0b1 100644
--- a/src/common/Collision/Management/MMapManager.cpp
+++ b/src/common/Collision/Management/MMapManager.cpp
@@ -164,11 +164,11 @@ namespace MMAP
long pos = ftell(file);
fseek(file, 0, SEEK_END);
- if (fileHeader.size > ftell(file) - pos)
+ if (int64(fileHeader.size) > ftell(file) - pos)
{
TC_LOG_ERROR("maps", "MMAP:loadMap: %04u%02i%02i.mmtile has corrupted data size", mapId, x, y);
fclose(file);
- return;
+ return false;
}
fseek(file, pos, SEEK_SET);