[0056] Fix for creature spawnmask 1 warning in map 0. Map 0 was removed from DBC

This commit is contained in:
Surion 2012-08-10 13:38:52 -05:00 committed by Antz
parent 9286040179
commit cc46cae74a
2 changed files with 3 additions and 2 deletions

View file

@ -1250,7 +1250,8 @@ void ObjectMgr::LoadCreatures()
continue; continue;
} }
if (data.spawnMask & ~spawnMasks[data.mapid]) // Map 0 was removed from dbc as of 4.x.x
if ((data.spawnMask & ~spawnMasks[data.mapid]) && data.mapid !=0)
sLog.outErrorDb("Table `creature` have creature (GUID: %u) that have wrong spawn mask %u including not supported difficulty modes for map (Id: %u).", guid, data.spawnMask, data.mapid); sLog.outErrorDb("Table `creature` have creature (GUID: %u) that have wrong spawn mask %u including not supported difficulty modes for map (Id: %u).", guid, data.spawnMask, data.mapid);
bool ok = true; bool ok = true;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "0055" #define REVISION_NR "0056"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__