diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-23 18:50:17 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-23 18:50:17 +0200 |
commit | fd5a95a00234d0806c0cb2d994f39cba9447406c (patch) | |
tree | 1fa3fcb5f1b140166ddb2856f139f130343af4da /src/Mobs/Behaviors | |
parent | d (diff) | |
download | cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.tar cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.tar.gz cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.tar.bz2 cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.tar.lz cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.tar.xz cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.tar.zst cuberite-fd5a95a00234d0806c0cb2d994f39cba9447406c.zip |
Diffstat (limited to 'src/Mobs/Behaviors')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorChaser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorChaser.cpp b/src/Mobs/Behaviors/BehaviorChaser.cpp index 3ac7c5123..d4a72896a 100644 --- a/src/Mobs/Behaviors/BehaviorChaser.cpp +++ b/src/Mobs/Behaviors/BehaviorChaser.cpp @@ -36,6 +36,8 @@ bool cBehaviorChaser::IsControlDesired() void cBehaviorChaser::Tick() { + ASSERT((GetTarget() == nullptr) || (GetTarget()->IsPawn() && (GetTarget()->GetWorld() == GetWorld()))); + // Stop targeting out of range targets if (GetTarget() != nullptr) { |