- Removing "mCount" variable from GuiLayers

This commit is contained in:
wagic.the.homebrew
2011-05-29 04:40:13 +00:00
parent 4e86981231
commit 34311a4499
15 changed files with 80 additions and 92 deletions

View File

@@ -106,7 +106,7 @@ vector<MTGAbility *> AIHints::findAbilities(AIHint * hint)
std::vector<MTGAbility *> elems;
ActionLayer * al = GameObserver::GetInstance()->mLayers->actionLayer();
for (int i = 1; i < al->mCount; i++) //0 is not a mtgability...hackish
for (size_t i = 1; i < al->mObjects.size(); i++) //0 is not a mtgability...hackish
{
MTGAbility * a = ((MTGAbility *) al->mObjects[i]);
if (abilityMatches(a, hint))