1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixed CID 1366402

This commit is contained in:
DjWarmonger 2016-11-29 17:18:05 +01:00
parent 81e7164ef2
commit 67d5cee05e

View File

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