diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-07 18:07:14 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-19 06:05:22 +0100 |
commit | 83459d0d899786378e8304c92a5b79ddca92c62f (patch) | |
tree | 637e5302c5c5affc5f3c52d4c195cba5607aac30 /src/Entities/Pawn.cpp | |
parent | Merge pull request #3020 from cuberite/ice_block (diff) | |
download | cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.tar cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.tar.gz cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.tar.bz2 cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.tar.lz cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.tar.xz cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.tar.zst cuberite-83459d0d899786378e8304c92a5b79ddca92c62f.zip |
Diffstat (limited to 'src/Entities/Pawn.cpp')
-rw-r--r-- | src/Entities/Pawn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp index c8780c326..3dea74851 100644 --- a/src/Entities/Pawn.cpp +++ b/src/Entities/Pawn.cpp @@ -221,7 +221,7 @@ void cPawn::ClearEntityEffects() void cPawn::NoLongerTargetingMe(cMonster * a_Monster) { - ASSERT(!IsDestroyed()); // Our destroy override is supposed to clear all targets before we're destroyed. + ASSERT(IsTicking()); // Our destroy override is supposed to clear all targets before we're destroyed. for (auto i = m_TargetingMe.begin(); i != m_TargetingMe.end(); ++i) { cMonster * Monster = *i; @@ -241,7 +241,7 @@ void cPawn::NoLongerTargetingMe(cMonster * a_Monster) void cPawn::TargetingMe(cMonster * a_Monster) { - ASSERT(!IsDestroyed()); + ASSERT(IsTicking()); ASSERT(m_TargetingMe.size() < 10000); ASSERT(a_Monster->GetTarget() == this); m_TargetingMe.push_back(a_Monster); |