[9588] Really fix freeze :/

This commit is contained in:
VladimirMangos 2010-03-15 17:24:13 +03:00
parent cee1660a3c
commit 7d304b002c
2 changed files with 5 additions and 2 deletions

View file

@ -1246,12 +1246,15 @@ void Group::_setLeader(const uint64 &guid)
void Group::_removeRolls(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* roll = *it;
Roll::PlayerVote::iterator itr2 = roll->playerVote.find(guid); Roll::PlayerVote::iterator itr2 = roll->playerVote.find(guid);
if(itr2 == roll->playerVote.end()) if(itr2 == roll->playerVote.end())
{
++it;
continue; continue;
}
if (itr2->second == GREED || itr2->second == DISENCHANT) if (itr2->second == GREED || itr2->second == DISENCHANT)
--roll->totalGreed; --roll->totalGreed;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9587" #define REVISION_NR "9588"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__