1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-01 00:45:26 +02:00

Style tweaks.

This commit is contained in:
AlexVinS
2016-10-02 15:22:55 +03:00
parent 34a494ade0
commit cd5c0b3297
7 changed files with 17 additions and 19 deletions

View File

@ -1798,7 +1798,7 @@ void CGameState::initTowns()
for(ui32 z=0; z<vti->obligatorySpells.size();z++)
{
CSpell *s = vti->obligatorySpells[z].toSpell();
auto s = vti->obligatorySpells[z].toSpell();
vti->spells[s->level-1].push_back(s->id);
vti->possibleSpells -= s->id;
}
@ -1826,7 +1826,7 @@ void CGameState::initTowns()
if(sel<0)
sel=0;
CSpell *s = vti->possibleSpells[sel].toSpell();
auto s = vti->possibleSpells[sel].toSpell();
vti->spells[s->level-1].push_back(s->id);
vti->possibleSpells -= s->id;
}