aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index b036fd1118e..6485355a294 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -16706,26 +16706,26 @@ void Player::AddSpellMod(SpellModifier* mod, bool apply)
}
}
-// Restore spellmods in case of failed cast
-void Player::RestoreSpellMods(Spell const* spell)
-{
- if(!spell || (m_SpellModRemoveCount == 0))
- return;
-
- for(int i=0;i<MAX_SPELLMOD;++i)
- {
- for (SpellModList::iterator itr = m_spellMods[i].begin(); itr != m_spellMods[i].end();++itr)
- {
- SpellModifier *mod = *itr;
-
- if (mod && mod->charges == -1 && mod->lastAffected == spell)
- {
- mod->lastAffected = NULL;
- mod->charges = 1;
- m_SpellModRemoveCount--;
- }
- }
- }
+// Restore spellmods in case of failed cast
+void Player::RestoreSpellMods(Spell const* spell)
+{
+ if(!spell || (m_SpellModRemoveCount == 0))
+ return;
+
+ for(int i=0;i<MAX_SPELLMOD;++i)
+ {
+ for (SpellModList::iterator itr = m_spellMods[i].begin(); itr != m_spellMods[i].end();++itr)
+ {
+ SpellModifier *mod = *itr;
+
+ if (mod && mod->charges == -1 && mod->lastAffected == spell)
+ {
+ mod->lastAffected = NULL;
+ mod->charges = 1;
+ m_SpellModRemoveCount--;
+ }
+ }
+ }
}
void Player::RemoveSpellMods(Spell const* spell)