These are the ones I put in the other day, took PEQ down from something like 50 crashes a day? to very few
Code:
Index: zone/hate_list.cpp
===================================================================
--- zone/hate_list.cpp (revision 1079)
+++ zone/hate_list.cpp (working copy)
@@ -266,7 +266,7 @@
}
}
- if((cur->ent->GetHP()*100/cur->ent->GetMaxHP()) < 20){
+ if(cur->ent->GetMaxHP() != 0 && ((cur->ent->GetHP()*100/cur->ent->GetMaxHP()) < 20)){
aggroMod += RuleI(Aggro, CriticallyWoundedAggroMod);
}
Index: zone/MobAI.cpp
===================================================================
--- zone/MobAI.cpp (revision 1079)
+++ zone/MobAI.cpp (working copy)
@@ -1229,6 +1229,9 @@
bool Mob::AddRampage(Mob *mob)
{
+ if(!mob)
+ return false;
+
if (!SpecAttacks[SPECATK_RAMPAGE])
return false;
for (int i = 0; i < MAX_RAMPAGE_LIST; i++)