summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp7
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++;