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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2015, 06:20 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I can't test it atm..but, you could try this as a fix:
Code:
 zone/mob_ai.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp
index 79c4493..33df4e6 100644
--- a/zone/mob_ai.cpp
+++ b/zone/mob_ai.cpp
@@ -1031,6 +1031,9 @@ void Mob::AI_Process() {
 			}
 		}
 
+		if (target && !hate_list.IsEntOnHateList(target))
+			target = nullptr;
+
 		if (!target)
 			return;

EDIT: That's just above where you posted from

It's possible for the ai target timer to not be ready in the 'else' clause from above and the code will flow through with the last target..

..which, if already destroyed, will cause an exception error when you try to dereference the pointer - testing for target->IsCorpse()
__________________
Uleat of Bertoxxulous

Compilin' Dirty

Last edited by Uleat; 12-24-2015 at 06:46 PM..
Reply With Quote
  #2  
Old 12-24-2015, 06:48 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Added this above did fix it.

Code:
if (target && !hate_list.IsEntOnHateList(target))
			target = nullptr;
So what are we doing here? What is the current target causing the error? I am guessing it is the charmed underwater mob that just died? The question though is why it only seems to happen when the charmed mob is underwater and the client is not.

Either way I am very appreciative it is fixed but I would really like to know more about what the cause was. If I am going to continue to learn the source I have to dig my heels in.
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:28 AM.


 

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