mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
*Fix a crash caused by wintergrasp setup when a graveyard defined in db cannot be find by core.
--HG-- branch : trunk
This commit is contained in:
@@ -246,6 +246,12 @@ bool OPvPWintergrasp::SetupOutdoorPvP()
|
||||
{
|
||||
// find or create grave yard
|
||||
const WorldSafeLocsEntry *loc = objmgr.GetClosestGraveYard((*itr)->x, (*itr)->y, (*itr)->z, (*itr)->mapId, 0);
|
||||
if(!loc)
|
||||
{
|
||||
++itr;
|
||||
continue;
|
||||
}
|
||||
|
||||
GraveYardMap::const_iterator graveItr;
|
||||
for(graveItr = graveLow; graveItr != graveUp; ++graveItr)
|
||||
if(graveItr->second.safeLocId == loc->ID)
|
||||
|
||||
Reference in New Issue
Block a user