Przeglądaj źródła

VCAI::showGarrisonDialog: don't try to pick army from locked garrison

Arseniy Shestakov 9 lat temu
rodzic
commit
02a45007e7
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      AI/VCAI/VCAI.cpp

+ 3 - 1
AI/VCAI/VCAI.cpp

@@ -697,7 +697,9 @@ void VCAI::showGarrisonDialog(const CArmedInstance *up, const CGHeroInstance *do
 	//you can't request action from action-response thread
 	requestActionASAP([=]()
 	{
-		pickBestCreatures (down, up);
+		if(removableUnits)
+			pickBestCreatures(down, up);
+
 		answerQuery(queryID, 0);
 	});
 }