Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #15  
Old 03-24-2013, 02:12 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default

I found the root cause of that crash:

The scenario is as follows: A client who is not a GM goes linkdead. The client leaves the group, leaving the merc as the leader. The merc, of course, will stay in the group until the client leaves the zone, however, it is now leader of a group it shouldn't be. There is a check on linkdead timeout that removes *and* depops the merc. The depop command should take care of the removal of the merc from the group, however, since the ID of the mercenary is 0 (which is set because the merc is the leader and the client is still technically in the group) it causes a crash due to the GetMerc() function returning NULL because of the ID of the merc.

To remedy this I have changed it to only call Depop() on merc instead. That will clean up the group properly and clean up the merc properly.

I will pull request a few areas that did this after I test it to make sure I didn't break anything else.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:53 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3