[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;
}
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);
bool ok = true;