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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user