mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Dungeon Finder: Fix crash in Join
(trying to delete a const iterator) Closes issue 5083 --HG-- branch : trunk
This commit is contained in:
@@ -546,7 +546,7 @@ void LFGMgr::Join(Player* plr, uint8 roles, LfgDungeonSet& dungeons, std::string
|
||||
}
|
||||
if (lockStatusMap)
|
||||
{
|
||||
for (LfgLockStatusMap::const_iterator it = lockStatusMap->begin(); it != lockStatusMap->end(); ++it)
|
||||
for (LfgLockStatusMap::iterator it = lockStatusMap->begin(); it != lockStatusMap->end(); ++it)
|
||||
delete it->second;
|
||||
delete lockStatusMap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user