mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-30 19:42:17 +00:00
[Crash] Fix dangling Group member pointers for Bots. (#3134)
* [Crash] Fix dangling Group member pointers for Bots. * fixes for edge cases
This commit is contained in:
1 parent
4fe44f4cb6
commit
fe2dcb6544
5 files changed
+100
-58
No files matched your search
@@ -141,6 +141,7 @@ public:
|
||||
bool HasGroup() final { return GetGroup() != nullptr; }
|
||||
Raid* GetRaid() final { return entity_list.GetRaidByBot(this); }
|
||||
Group* GetGroup() final { return entity_list.GetGroupByMob(this); }
|
||||
Group* GetGroupByLeaderName() { return entity_list.GetGroupByLeaderName(GetName()); }
|
||||
|
||||
// Common, but informal "interfaces" with Client object
|
||||
uint32 CharacterID() const { return GetBotID(); }
|
||||
|
||||
Reference in new issue
Block a user