Browse Source

Fixed CID 1366402

DjWarmonger 9 năm trước cách đây
mục cha
commit
67d5cee05e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 1 - 1
AI/VCAI/VCAI.cpp

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