mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Fix crash
This commit is contained in:
parent
eb33279701
commit
766dcc464e
@ -132,7 +132,7 @@ void Mob::ProcessFlee()
|
|||||||
Mob *hate_top = GetHateTop();
|
Mob *hate_top = GetHateTop();
|
||||||
|
|
||||||
// If no special flee_percent check for Gray or Other con rates
|
// 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);
|
fleeratio = RuleI(Combat, FleeGrayHPRatio);
|
||||||
} else if(fleeratio == 0) {
|
} else if(fleeratio == 0) {
|
||||||
fleeratio = RuleI(Combat, FleeHPRatio );
|
fleeratio = RuleI(Combat, FleeHPRatio );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user