2
0
Эх сурвалжийг харах

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

AlexVinS 5 жил өмнө
parent
commit
55b54024a8

+ 3 - 2
client/windows/CHeroWindow.cpp

@@ -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;
 }