1
0

Store and pass entity effect duration as an int not a short. (#4293)

Fixes #4292.
This commit is contained in:
Alexander Harkness
2018-08-26 15:52:39 +01:00
committed by GitHub
parent 2d3ad7f1ae
commit c4f43cd8ec
13 changed files with 13 additions and 37 deletions

View File

@@ -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);
}