summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorAttacker.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-30 14:16:53 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-30 14:16:53 +0200
commitd712e754c6d2ff28540ff454a86ce41c6e1f5253 (patch)
treec17cbc929c1a113740638e1eae7b3c3270267af9 /src/Mobs/Behaviors/BehaviorAttacker.cpp
parentBehaviorAttacker (diff)
downloadcuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.tar
cuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.tar.gz
cuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.tar.bz2
cuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.tar.lz
cuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.tar.xz
cuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.tar.zst
cuberite-d712e754c6d2ff28540ff454a86ce41c6e1f5253.zip
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorAttacker.cpp')
-rw-r--r--src/Mobs/Behaviors/BehaviorAttacker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Behaviors/BehaviorAttacker.cpp b/src/Mobs/Behaviors/BehaviorAttacker.cpp
index 30c18019e..00eb53179 100644
--- a/src/Mobs/Behaviors/BehaviorAttacker.cpp
+++ b/src/Mobs/Behaviors/BehaviorAttacker.cpp
@@ -57,7 +57,7 @@ void cBehaviorAttacker::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
if (m_IsStriking)
{
- if (StrikeTarget(a_Dt, a_Chunk, ++m_StrikeTickCnt))
+ if (StrikeTarget(++m_StrikeTickCnt))
{
m_Parent->UnpinBehavior(this);
m_IsStriking = false;