diff options
-rw-r--r-- | src/game/OutdoorPvPWG.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/OutdoorPvPWG.cpp b/src/game/OutdoorPvPWG.cpp index bc531a4032a..4d4c6590b04 100644 --- a/src/game/OutdoorPvPWG.cpp +++ b/src/game/OutdoorPvPWG.cpp @@ -678,7 +678,10 @@ void OutdoorPvPWG::OnCreatureCreate(Creature *creature, bool add) break; } case CREATURE_QUESTGIVER: - m_questgivers[creature->GetDBTableGUIDLow()] = creature; + if (add) + m_questgivers[creature->GetDBTableGUIDLow()] = creature; + else + m_questgivers.erase(creature->GetDBTableGUIDLow()); break; case CREATURE_ENGINEER: for (OutdoorPvP::OPvPCapturePointMap::iterator itr = m_capturePoints.begin(); itr != m_capturePoints.end(); ++itr) |