Fix crash in OutdoorPvPWG::UpdateQuestGiverPosition
Fixes issue #342. --HG-- branch : trunk
This commit is contained in:
@@ -678,7 +678,10 @@ void OutdoorPvPWG::OnCreatureCreate(Creature *creature, bool add)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CREATURE_QUESTGIVER:
|
case CREATURE_QUESTGIVER:
|
||||||
m_questgivers[creature->GetDBTableGUIDLow()] = creature;
|
if (add)
|
||||||
|
m_questgivers[creature->GetDBTableGUIDLow()] = creature;
|
||||||
|
else
|
||||||
|
m_questgivers.erase(creature->GetDBTableGUIDLow());
|
||||||
break;
|
break;
|
||||||
case CREATURE_ENGINEER:
|
case CREATURE_ENGINEER:
|
||||||
for (OutdoorPvP::OPvPCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr)
|
for (OutdoorPvP::OPvPCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr)
|
||||||
|
|||||||
Reference in New Issue
Block a user