diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-25 00:56:19 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-01-25 00:56:19 +0100 |
commit | 1112f5adc6f66195ae030673e7831e46ae06c7b0 (patch) | |
tree | 905608852fda73d40f20bca4a975f593eb4d77a1 /src/Mobs | |
parent | Zombies and skeletons use AI (diff) | |
download | cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.tar cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.tar.gz cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.tar.bz2 cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.tar.lz cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.tar.xz cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.tar.zst cuberite-1112f5adc6f66195ae030673e7831e46ae06c7b0.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Monster.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 3b453552b..1db16ab71 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -249,6 +249,9 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk) return; } + if ((m_Target != NULL) && m_Target->IsDestroyed()) + m_Target = NULL; + // Burning in daylight HandleDaylightBurning(a_Chunk); |