1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Cherry-picked essential fix from #631. This fixes https://bugs.vcmi.eu/view.php?id=3074.

This commit is contained in:
AlexVinS 2020-03-18 00:06:07 +03:00
parent dca5d86e7a
commit 55b54024a8

View File

@ -52,10 +52,11 @@ const TBonusListPtr CHeroWithMaybePickedArtifact::getAllBonuses(const CSelector
else
bonusesFromPickedUpArtifact = TBonusListPtr(new BonusList());
for(auto b : *bonusesFromPickedUpArtifact)
*heroBonuses -= b;
for(auto b : *heroBonuses)
out->push_back(b);
for(auto b : *bonusesFromPickedUpArtifact)
*out -= b;
return out;
}