From fc854786ed73fe768d6a3ca22c02f7013560a930 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Aug 2012 21:35:49 +0300 Subject: Fix code style. --- src/playerinfo.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/playerinfo.cpp') 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++; -- cgit v1.2.3-70-g09d2