mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-09 03:18:57 +01:00
Core/Groups: Fixed crash in loot rolls happening when looted object despawns before roll expires
This commit is contained in:
@@ -2792,8 +2792,9 @@ Group::Rolls::iterator Group::GetRoll(ObjectGuid Guid)
|
||||
{
|
||||
Rolls::iterator iter;
|
||||
for (iter=RollId.begin(); iter != RollId.end(); ++iter)
|
||||
if ((*iter)->itemGUID == Guid && (*iter)->isValid())
|
||||
if ((*iter)->isValid() && (*iter)->itemGUID == Guid)
|
||||
return iter;
|
||||
|
||||
return RollId.end();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user