瀏覽代碼

Fixed CID 1366402

DjWarmonger 9 年之前
父節點
當前提交
67d5cee05e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 			//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;