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:
parent
81e7164ef2
commit
67d5cee05e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user