mirror of
https://github.com/SWG-Source/stationapi.git
synced 2026-07-28 22:15:46 -04:00
Added check for logged out client to prevent erase on erased pointer
This commit is contained in:
@@ -72,6 +72,7 @@ void ChatAvatarService::LoginAvatar(ChatAvatar* avatar) {
|
||||
}
|
||||
|
||||
void ChatAvatarService::LogoutAvatar(ChatAvatar* avatar) {
|
||||
if(!avatar->isOnline_) return;
|
||||
avatar->isOnline_ = false;
|
||||
|
||||
onlineAvatars_.erase(std::remove_if(
|
||||
|
||||
Reference in New Issue
Block a user