mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
Temp fix for Bot::Camp() zone crashes (memory leak still needs to be addressed)
This commit is contained in:
parent
c0575892cb
commit
7749f83134
@ -7465,12 +7465,13 @@ void Bot::DoEnduranceUpkeep() {
|
||||
void Bot::Camp(bool databaseSave) {
|
||||
Sit();
|
||||
|
||||
auto group = GetGroup();
|
||||
if(group)
|
||||
//auto group = GetGroup();
|
||||
if(GetGroup())
|
||||
RemoveBotFromGroup(this, GetGroup());
|
||||
|
||||
if (group->GroupCount() < 2)
|
||||
group->DisbandGroup();
|
||||
// RemoveBotFromGroup() code is too complicated for this to work as-is (still needs to be addressed to prevent memory leaks)
|
||||
//if (group->GroupCount() < 2)
|
||||
// group->DisbandGroup();
|
||||
|
||||
LeaveHealRotationMemberPool();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user