diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-01 21:35:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-01 22:40:36 +0300 |
commit | fc854786ed73fe768d6a3ca22c02f7013560a930 (patch) | |
tree | 3a12f555d194679957559760567ff8eb701b494b /src/playerinfo.cpp | |
parent | 09d74d9273cca445b7019edacaff53452a1eee3c (diff) | |
download | mv-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz mv-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2 mv-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz mv-fc854786ed73fe768d6a3ca22c02f7013560a930.zip |
Fix code style.
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r-- | src/playerinfo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp index 61d72df3b..c22352436 100644 --- a/src/playerinfo.cpp +++ b/src/playerinfo.cpp @@ -267,9 +267,10 @@ void logic() for (SpecialsMap::iterator it = mSpecials.begin(), it_end = mSpecials.end(); it != it_end; ++it) { - it->second.currentMana += it->second.recharge; - if (it->second.currentMana > it->second.neededMana) - it->second.currentMana = it->second.neededMana; + Special &special = it->second; + special.currentMana += special.recharge; + if (special.currentMana > special.neededMana) + special.currentMana = special.neededMana; } } mSpecialRechargeUpdateNeeded++; |