mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Scripts/Onyxia Lair: Fix debug assertions about iterators
This commit is contained in:
@@ -212,13 +212,24 @@ public:
|
||||
{
|
||||
if (eruptTimer <= diff)
|
||||
{
|
||||
uint32 treeHeight = 0;
|
||||
do
|
||||
uint64 frontGuid = FloorEruptionGUIDQueue.front();
|
||||
std::map<uint64, uint32>::iterator itr = FloorEruptionGUID[1].find(frontGuid);
|
||||
if (itr != FloorEruptionGUID[1].end())
|
||||
{
|
||||
treeHeight = (*FloorEruptionGUID[1].find(FloorEruptionGUIDQueue.front())).second;
|
||||
FloorEruption(FloorEruptionGUIDQueue.front());
|
||||
FloorEruptionGUIDQueue.pop();
|
||||
} while (!FloorEruptionGUIDQueue.empty() && (*FloorEruptionGUID[1].find(FloorEruptionGUIDQueue.front())).second == treeHeight);
|
||||
uint32 treeHeight = itr->second;
|
||||
|
||||
do
|
||||
{
|
||||
FloorEruption(frontGuid);
|
||||
FloorEruptionGUIDQueue.pop();
|
||||
if (FloorEruptionGUIDQueue.empty())
|
||||
break;
|
||||
|
||||
frontGuid = FloorEruptionGUIDQueue.front();
|
||||
itr = FloorEruptionGUID[1].find(frontGuid);
|
||||
} while (itr != FloorEruptionGUID[1].end() && itr->second == treeHeight);
|
||||
}
|
||||
|
||||
eruptTimer = 1000;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user