[Client] Fix code style

This commit is contained in:
Koncord 2017-01-30 22:53:22 +08:00
parent c5035cd174
commit 42b6a456f0

View file

@ -914,7 +914,7 @@ void LocalPlayer::setSpellbook()
MWMechanics::Spells &ptrSpells = ptrPlayer.getClass().getCreatureStats(ptrPlayer).getSpells(); MWMechanics::Spells &ptrSpells = ptrPlayer.getClass().getCreatureStats(ptrPlayer).getSpells();
// Clear spells in spellbook, while ignoring abilities, powers, etc. // Clear spells in spellbook, while ignoring abilities, powers, etc.
while(true) while (true)
{ {
MWMechanics::Spells::TIterator iter = ptrSpells.begin(); MWMechanics::Spells::TIterator iter = ptrSpells.begin();
for (; iter != ptrSpells.end(); iter++) for (; iter != ptrSpells.end(); iter++)
@ -926,7 +926,7 @@ void LocalPlayer::setSpellbook()
break; break;
} }
} }
if(iter == ptrSpells.end()) if (iter == ptrSpells.end())
break; break;
} }