Core/Groups: fixed a crash when rolling for items

This commit is contained in:
Ovahlord authored and GitHub committed 2023-11-12 07:36:39 +01:00
1 parent 4d27b31b6b
commit 133588ca60
1 file changed
-2
-2
View File
@@ -1434,7 +1434,6 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
if (!roll->isValid()) // is loot already deleted ?
{
RollId.erase(rollI);
delete roll;
return;
}
@@ -1612,7 +1611,6 @@ void Group::CountTheRoll(Rolls::iterator rollI, Map* allowedMap)
}
RollId.erase(rollI);
delete roll;
}
void Group::SetTargetIcon(uint8 id, ObjectGuid whoGuid, ObjectGuid targetGuid)