mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9585] Restore lost return in prev. commit.
This commit is contained in:
parent
6bfa8d81c6
commit
703f9dd72a
2 changed files with 4 additions and 3 deletions
|
|
@ -760,11 +760,10 @@ bool Group::CountRollVote(ObjectGuid const& playerGUID, Rolls::iterator& rollI,
|
|||
//called when roll timer expires
|
||||
void Group::EndRoll()
|
||||
{
|
||||
Rolls::iterator itr;
|
||||
while(!RollId.empty())
|
||||
{
|
||||
//need more testing here, if rolls disappear
|
||||
itr = RollId.begin();
|
||||
Rolls::iterator itr = RollId.begin();
|
||||
CountTheRoll(itr); //i don't have to edit player votes, who didn't vote ... he will pass
|
||||
}
|
||||
}
|
||||
|
|
@ -776,7 +775,9 @@ void Group::CountTheRoll(Rolls::iterator& rollI)
|
|||
{
|
||||
rollI = RollId.erase(rollI);
|
||||
delete roll;
|
||||
return;
|
||||
}
|
||||
|
||||
//end of the roll
|
||||
if (roll->totalNeed > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue