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:
parent
dca5d86e7a
commit
55b54024a8
@ -52,10 +52,11 @@ const TBonusListPtr CHeroWithMaybePickedArtifact::getAllBonuses(const CSelector
|
|||||||
else
|
else
|
||||||
bonusesFromPickedUpArtifact = TBonusListPtr(new BonusList());
|
bonusesFromPickedUpArtifact = TBonusListPtr(new BonusList());
|
||||||
|
|
||||||
for(auto b : *bonusesFromPickedUpArtifact)
|
|
||||||
*heroBonuses -= b;
|
|
||||||
for(auto b : *heroBonuses)
|
for(auto b : *heroBonuses)
|
||||||
out->push_back(b);
|
out->push_back(b);
|
||||||
|
|
||||||
|
for(auto b : *bonusesFromPickedUpArtifact)
|
||||||
|
*out -= b;
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user