Forráskód Böngészése

Fixed CID 1366402

DjWarmonger 9 éve
szülő
commit
67d5cee05e
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;