mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9587] Fixed freeze after recent loot roll code changes.
Thanks to j4r0d for testing.
This commit is contained in:
parent
0bf1d4e51f
commit
cee1660a3c
2 changed files with 2 additions and 2 deletions
|
|
@ -711,7 +711,7 @@ bool Group::CountRollVote(ObjectGuid const& playerGUID, Rolls::iterator& rollI,
|
||||||
Roll::PlayerVote::iterator itr = roll->playerVote.find(playerGUID.GetRawValue());
|
Roll::PlayerVote::iterator itr = roll->playerVote.find(playerGUID.GetRawValue());
|
||||||
// this condition means that player joins to the party after roll begins
|
// this condition means that player joins to the party after roll begins
|
||||||
if (itr == roll->playerVote.end())
|
if (itr == roll->playerVote.end())
|
||||||
return false;
|
return true; // result used for need iterator ++, so avoid for end of list
|
||||||
|
|
||||||
if (roll->getLoot())
|
if (roll->getLoot())
|
||||||
if (roll->getLoot()->items.empty())
|
if (roll->getLoot()->items.empty())
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9586"
|
#define REVISION_NR "9587"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue