summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2018-08-26 16:52:39 +0200
committerGitHub <noreply@github.com>2018-08-26 16:52:39 +0200
commitc4f43cd8ec0d31705aef105c9b2bb0c26f976bf6 (patch)
treefafb866d829cb18c0c94cb250f1f4a043f20e403 /src/Entities
parentCircle 2.0: Use workspace instead of cache (#4291) (diff)
downloadcuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.tar
cuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.tar.gz
cuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.tar.bz2
cuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.tar.lz
cuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.tar.xz
cuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.tar.zst
cuberite-c4f43cd8ec0d31705aef105c9b2bb0c26f976bf6.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Pawn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp
index 65af67916..dc87c5227 100644
--- a/src/Entities/Pawn.cpp
+++ b/src/Entities/Pawn.cpp
@@ -193,7 +193,7 @@ void cPawn::AddEntityEffect(cEntityEffect::eType a_EffectType, int a_Duration, s
}
auto Res = m_EntityEffects.emplace(a_EffectType, cEntityEffect::CreateEntityEffect(a_EffectType, a_Duration, a_Intensity, a_DistanceModifier));
- m_World->BroadcastEntityEffect(*this, a_EffectType, a_Intensity, static_cast<short>(a_Duration));
+ m_World->BroadcastEntityEffect(*this, a_EffectType, a_Intensity, a_Duration);
cEntityEffect * Effect = Res.first->second.get();
Effect->OnActivate(*this);
}