mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-03 21:42:26 +00:00
[CLE] Reset iterator in IsAccountInGame() (#1345)
This commit is contained in:
parent
2edda6e743
commit
e18b332414
@ -1244,7 +1244,7 @@ void ClientList::RemoveCLEByLSID(uint32 iLSID)
|
|||||||
|
|
||||||
bool ClientList::IsAccountInGame(uint32 iLSID) {
|
bool ClientList::IsAccountInGame(uint32 iLSID) {
|
||||||
LinkedListIterator<ClientListEntry*> iterator(clientlist);
|
LinkedListIterator<ClientListEntry*> iterator(clientlist);
|
||||||
|
iterator.Reset();
|
||||||
while (iterator.MoreElements()) {
|
while (iterator.MoreElements()) {
|
||||||
if (iterator.GetData()->LSID() == iLSID && iterator.GetData()->Online() == CLE_Status::InZone) {
|
if (iterator.GetData()->LSID() == iLSID && iterator.GetData()->Online() == CLE_Status::InZone) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user