aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);