mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 17:53:35 +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:
1 parent
efb03164c7
commit
d8926cd5f3
1 file changed
+8
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user