From 5acadea119fc2a89e944dc9431e298e5e9544770 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Dec 2011 23:06:48 +0300 Subject: Fix some issues after automatic code checking. --- src/being.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 31f1eac59..185891509 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2527,10 +2527,9 @@ void Being::updatePercentHP() { if (!mMaxHP || !serverVersion) return; - unsigned num = 0; if (mHP) { - num = mHP * 100 / mMaxHP; + unsigned num = mHP * 100 / mMaxHP; if (num != mNumber) { mNumber = num; -- cgit v1.2.3-60-g2f50