Просмотр исходного кода

Merge pull request #2234 from vcmi/fix_pandora

Fix empty Pandora message
DjWarmonger 2 лет назад
Родитель
Сommit
c448f6275e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/mapObjects/CGPandoraBox.cpp

+ 1 - 1
lib/mapObjects/CGPandoraBox.cpp

@@ -331,7 +331,7 @@ void CGPandoraBox::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answe
 		else if(message.empty() && resources.empty()
 			&& primskills.empty() && abilities.empty()
 			&& abilityLevels.empty() && artifacts.empty()
-			&& spells.empty() && creatures.stacksCount() > 0
+			&& spells.empty() && creatures.stacksCount() == 0
 			&& gainedExp == 0 && manaDiff == 0 && moraleDiff == 0 && luckDiff == 0) //if it gives nothing without battle
 		{
 			hero->showInfoDialog(15);