From 7d304b002ca45b01bb685ff9da223832c6a7ac5d Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 15 Mar 2010 17:24:13 +0300 Subject: [PATCH] [9588] Really fix freeze :/ --- src/game/Group.cpp | 5 ++++- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/Group.cpp b/src/game/Group.cpp index f438f20f2..467ba9e0e 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -1246,12 +1246,15 @@ void Group::_setLeader(const uint64 &guid) void Group::_removeRolls(const uint64 &guid) { - for (Rolls::iterator it = RollId.begin(); it < RollId.end(); ) + for (Rolls::iterator it = RollId.begin(); it != RollId.end(); ) { Roll* roll = *it; Roll::PlayerVote::iterator itr2 = roll->playerVote.find(guid); if(itr2 == roll->playerVote.end()) + { + ++it; continue; + } if (itr2->second == GREED || itr2->second == DISENCHANT) --roll->totalGreed; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4eaaa4c2f..003ca983f 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9587" + #define REVISION_NR "9588" #endif // __REVISION_NR_H__