From cc46cae74a3ea9c83ef47e9319276de9e231157a Mon Sep 17 00:00:00 2001 From: Surion Date: Fri, 10 Aug 2012 13:38:52 -0500 Subject: [PATCH] [0056] Fix for creature spawnmask 1 warning in map 0. Map 0 was removed from DBC --- src/game/ObjectMgr.cpp | 3 ++- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 27b986026..33137929d 100755 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index a5a2c0faf..944581ea9 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "0055" + #define REVISION_NR "0056" #endif // __REVISION_NR_H__