summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-02 23:06:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-02 23:06:48 +0300
commit5acadea119fc2a89e944dc9431e298e5e9544770 (patch)
tree5199e73d8b924cb4ca3324f0f17a1a6696301d77 /src/being.cpp
parentbf41736950d9e22be8b2b201dcd4833a50b26a99 (diff)
downloadplus-5acadea119fc2a89e944dc9431e298e5e9544770.tar.gz
plus-5acadea119fc2a89e944dc9431e298e5e9544770.tar.bz2
plus-5acadea119fc2a89e944dc9431e298e5e9544770.tar.xz
plus-5acadea119fc2a89e944dc9431e298e5e9544770.zip
Fix some issues after automatic code checking.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 1 insertions, 2 deletions
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;