1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix duplicate MR bonus display

This commit is contained in:
AlexVinS 2014-11-15 20:39:21 +03:00
parent 68d1105233
commit c43b218d64

View File

@ -754,7 +754,7 @@ void CStackWindow::initBonusesList()
//if it's possible to give any description or image for this kind of bonus
//TODO: figure out why half of bonuses don't have proper description
if (!bonusInfo.name.empty() || !bonusInfo.imagePath.empty())
if ((!bonusInfo.name.empty() || !bonusInfo.imagePath.empty())&& b->type != Bonus::MAGIC_RESISTANCE)
activeBonuses.push_back(bonusInfo);
}