Mark old cle entries as stale when you login

This commit is contained in:
KimLS
2019-07-20 22:12:48 -07:00
parent 186834594f
commit 780f8f8515
3 changed files with 18 additions and 1 deletions
+12
View File
@@ -1277,7 +1277,19 @@ void ClientList::UpdateClientGuild(uint32 char_id, uint32 guild_id) {
}
}
void ClientList::RemoveCLEByLSID(uint32 iLSID)
{
LinkedListIterator<ClientListEntry*> iterator(clientlist);
iterator.Reset();
while (iterator.MoreElements()) {
if (iterator.GetData()->LSAccountID() == iLSID) {
iterator.RemoveCurrent();
}
else
iterator.Advance();
}
}
int ClientList::GetClientCount() {
return(numplayers);