diff options
author | Mattes D <github@xoft.cz> | 2014-12-05 16:59:11 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-05 16:59:11 +0100 |
commit | e2a04f580a0813206f527a61244cb3382248fd12 (patch) | |
tree | 39f0a5026d619e89ce353cf8addf18e4a696b067 /src/Mobs/AggressiveMonster.cpp | |
parent | CheckBasicStyle: Added a check for parentheses around comparisons. (diff) | |
download | cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.gz cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.bz2 cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.lz cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.xz cuberite-e2a04f580a0813206f527a61244cb3382248fd12.tar.zst cuberite-e2a04f580a0813206f527a61244cb3382248fd12.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/AggressiveMonster.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp index 41ef26e2a..7ca7a9d66 100644 --- a/src/Mobs/AggressiveMonster.cpp +++ b/src/Mobs/AggressiveMonster.cpp @@ -75,7 +75,9 @@ void cAggressiveMonster::Tick(float a_Dt, cChunk & a_Chunk) } if (m_Target == nullptr) + { return; + } cTracer LineOfSight(GetWorld()); Vector3d AttackDirection(m_Target->GetPosition() - GetPosition()); |