mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-09 18:53:36 +00:00
Fix crash
This commit is contained in:
1 parent
eb33279701
commit
766dcc464e
1 file changed
+1
-1
+1
-1
@@ -132,7 +132,7 @@ void Mob::ProcessFlee()
|
||||
Mob *hate_top = GetHateTop();
|
||||
|
||||
// If no special flee_percent check for Gray or Other con rates
|
||||
if(GetLevelCon(hate_top->GetLevel(), GetLevel()) == CON_GRAY && fleeratio == 0 && RuleB(Combat, FleeGray)) {
|
||||
if(hate_top != nullptr && GetLevelCon(hate_top->GetLevel(), GetLevel()) == CON_GRAY && fleeratio == 0 && RuleB(Combat, FleeGray)) {
|
||||
fleeratio = RuleI(Combat, FleeGrayHPRatio);
|
||||
} else if(fleeratio == 0) {
|
||||
fleeratio = RuleI(Combat, FleeHPRatio );
|
||||
|
||||
Reference in new issue
Block a user