|
@@ -1076,7 +1076,7 @@ void VCAI::pickBestArtifacts(const CGHeroInstance * h, const CGHeroInstance * ot
|
|
|
//we give stuff to one hero or another, depending on giveStuffToFirstHero
|
|
//we give stuff to one hero or another, depending on giveStuffToFirstHero
|
|
|
|
|
|
|
|
const CGHeroInstance * target = nullptr;
|
|
const CGHeroInstance * target = nullptr;
|
|
|
- if (giveStuffToFirstHero)
|
|
|
|
|
|
|
+ if (giveStuffToFirstHero || !otherh)
|
|
|
target = h;
|
|
target = h;
|
|
|
else
|
|
else
|
|
|
target = otherh;
|
|
target = otherh;
|