mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Build fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user