mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
[Crash] Fix dangling pointer crash observed in SendHPPacketsFrom (#3611)
* [Crash] Fix dangling pointer crash observed in SendHPPacketsFrom * Update bot.cpp
This commit is contained in:
parent
efb03164c7
commit
d8926cd5f3
@ -465,6 +465,14 @@ Bot::~Bot() {
|
||||
}
|
||||
|
||||
entity_list.RemoveBot(GetID());
|
||||
|
||||
if (GetGroup()) {
|
||||
GetGroup()->DelMember(this);
|
||||
}
|
||||
|
||||
if (GetRaid()) {
|
||||
GetRaid()->RemoveMember(GetName());
|
||||
}
|
||||
}
|
||||
|
||||
void Bot::SetBotID(uint32 botID) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user