[0069] Better fix for spawnMask 1 in map 0 error. Thanks VladimirMangos for explaining how to specify map 0.

This commit is contained in:
LordPsyan 2012-08-12 14:57:22 -05:00 committed by Antz
parent 26827d9320
commit 81787fa460
2 changed files with 3 additions and 2 deletions

View file

@ -1251,7 +1251,8 @@ void ObjectMgr::LoadCreatures()
}
// Map 0 was removed from dbc as of 4.x.x
if ((data.spawnMask & ~spawnMasks[data.mapid]) && data.mapid !=0)
spawnMasks[0] = 1;
if (data.spawnMask & ~spawnMasks[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;