Core/GameEventMgr: Use correct lock type

This commit is contained in:
Machiavelli
2011-12-11 16:36:40 +01:00
parent 1b2c413933
commit 7c9093e32c
+1 -1
View File
@@ -1620,7 +1620,7 @@ void GameEventMgr::RunSmartAIScripts(uint16 event_id, bool activate)
iter->second->AI()->sOnGameEvent(activate, event_id);
}
{
TRINITY_READ_GUARD(HashMapHolder<GameObject>::LockType, *HashMapHolder<Creature>::GetLock());
TRINITY_READ_GUARD(HashMapHolder<GameObject>::LockType, *HashMapHolder<GameObject>::GetLock());
HashMapHolder<GameObject>::MapType const& m = ObjectAccessor::GetGameObjects();
for (HashMapHolder<GameObject>::MapType::const_iterator iter = m.begin(); iter != m.end(); ++iter)
if (iter->second->IsInWorld())