mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10002] Fixed map loading .map build checks.
Bug exist long time before recent code moves. But it not affect in cases proper .map files. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
cd5d598bd6
commit
1997cf2769
2 changed files with 3 additions and 3 deletions
|
|
@ -77,8 +77,8 @@ bool GridMap::loadData(char *filename)
|
|||
|
||||
fread(&header, sizeof(header),1,in);
|
||||
if (header.mapMagic == *((uint32 const*)(MAP_MAGIC)) &&
|
||||
header.versionMagic == *((uint32 const*)(MAP_VERSION_MAGIC)) ||
|
||||
!IsAcceptableClientBuild(header.buildMagic))
|
||||
header.versionMagic == *((uint32 const*)(MAP_VERSION_MAGIC)) &&
|
||||
IsAcceptableClientBuild(header.buildMagic))
|
||||
{
|
||||
// loadup area data
|
||||
if (header.areaMapOffset && !loadAreaData(in, header.areaMapOffset, header.areaMapSize))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue