1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Levels for WoG neutral creatures - fixes #1282.

Renamed Myriad and Medusa Queen (sic?) to Arctic & Lava Sharpshooter.
This commit is contained in:
DjWarmonger
2013-07-12 19:13:39 +00:00
parent 91cd88ba97
commit 886ef13bec
2 changed files with 15 additions and 15 deletions

View File

@@ -226,7 +226,7 @@ void BonusList::getBonuses(BonusList & out, const CSelector &selector, const CSe
Bonus *b = elem;
//add matching bonuses that matches limit predicate or have NO_LIMIT if no given predicate
if(selector(b) && ((!limit && b->effectRange == Bonus::NO_LIMIT) || (limit && limit(b))))
if(selector(b) && ((!limit && b->effectRange == Bonus::NO_LIMIT) || ((bool)limit && limit(b))))
out.push_back(b);
}
}