summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Slime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Slime.cpp b/src/Mobs/Slime.cpp
index 3198ce801..b4132ec26 100644
--- a/src/Mobs/Slime.cpp
+++ b/src/Mobs/Slime.cpp
@@ -19,7 +19,7 @@ cSlime::cSlime(int a_Size) :
),
m_Size(a_Size)
{
- SetMaxHealth(a_Size * a_Size);
+ SetMaxHealth(static_cast<float>(a_Size * a_Size));
SetAttackDamage(a_Size);
}