mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 02:27:21 +00:00
Added a few checks to resolve dangling pointers involving Mercs. Similar to the AIYellForHelp crash fixed years ago by Rogean.
This commit is contained in:
1 parent
b0b342a020
commit
fa18991917
3 files changed
+6
-2
No files matched your search
@@ -188,13 +188,14 @@ bool Client::Process() {
|
||||
|
||||
if(linkdead_timer.Check()){
|
||||
Save();
|
||||
LeaveGroup();
|
||||
if (GetMerc())
|
||||
{
|
||||
GetMerc()->Save();
|
||||
if(GetMerc()->GetGroup != NULL)
|
||||
GetMerc()->RemoveMercFromGroup(GetMerc(), GetMerc()->GetGroup());
|
||||
GetMerc()->Depop();
|
||||
}
|
||||
LeaveGroup();
|
||||
Raid *myraid = entity_list.GetRaidByClient(this);
|
||||
if (myraid)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user