summaryrefslogtreecommitdiffstats
path: root/src/objects/Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/Object.cpp')
-rw-r--r--src/objects/Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index 7eb56a1c..5fe3b4b1 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -161,7 +161,7 @@ CObject::ObjectDamage(float amount)
bool bBodyCastDamageEffect = false;
if (m_modelIndex == MI_BODYCAST){
if (amount > 50.0f)
- nBodyCastHealth = int16(nBodyCastHealth - 0.5f * amount);
+ nBodyCastHealth = (int16)(nBodyCastHealth - 0.5f * amount);
if (nBodyCastHealth < 0)
nBodyCastHealth = 0;
if (nBodyCastHealth < 200)