1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Refactoring: use cleaner CCreatureSet::stacksCount everywhere

This commit is contained in:
Arseniy Shestakov
2015-12-24 21:30:57 +03:00
parent 62bab27e7e
commit 6f5c52a229
7 changed files with 21 additions and 21 deletions

View File

@@ -292,9 +292,9 @@ void CBank::doVisit(const CGHeroInstance * hero) const
loot.addReplacement(*elem.second);
}
if (ourArmy.Slots().size())
if(ourArmy.stacksCount())
{
if (ourArmy.Slots().size() == 1 && ourArmy.Slots().begin()->second->count == 1)
if(ourArmy.stacksCount() == 1 && ourArmy.Slots().begin()->second->count == 1)
iw.text.addTxt (MetaString::ADVOB_TXT, 185);
else
iw.text.addTxt (MetaString::ADVOB_TXT, 186);