Build fix

This commit is contained in:
Shauren
2017-01-17 23:54:40 +01:00
parent 6767bbc95f
commit 2add03ab99

View File

@@ -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);