Skip to content

Commit

Permalink
Merge pull request liyunfan1223#346 from liyunfan1223/fix-crash-avoid…
Browse files Browse the repository at this point in the history
…-aoe

[Crash fix] Owner check for AvoidAuraWithDynamicObj
  • Loading branch information
liyunfan1223 authored Jul 16, 2024
2 parents 9ef0f64 + 3e20d83 commit 9b1736e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/strategy/actions/MovementActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,9 @@ bool AvoidAoeAction::AvoidAuraWithDynamicObj()
if (!aura || aura->IsRemoved() || aura->IsExpired()) {
return false;
}
if (!aura->GetOwner() || !aura->GetOwner()->IsInWorld()) {
return false;
}
// Crash fix: maybe change owner due to check interval
if (aura->GetType() != DYNOBJ_AURA_TYPE) {
return false;
Expand Down

0 comments on commit 9b1736e

Please sign in to comment.