Selaa lähdekoodia

client/windows/CCastleInterface.cpp: Identical sub-expressions on both sides of operator "&&".

Identical expressions should not be used on both sides of a binary operator
Alexander Wilms 2 vuotta sitten
vanhempi
sitoutus
10ad5b6789
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      client/windows/CCastleInterface.cpp

+ 2 - 2
client/windows/CCastleInterface.cpp

@@ -969,9 +969,9 @@ void CCastleBuildings::enterMagesGuild()
 	{
 		const StartInfo *si = LOCPLINT->cb->getStartInfo();
 		// it would be nice to find a way to move this hack to config/mapOverrides.json
-		if(si && si->campState && si->campState &&                // We're in campaign,
+		if(si && si->campState &&                				// We're in campaign,
 			(si->campState->getFilename() == "DATA/YOG.H3C") && // which is "Birth of a Barbarian",
-			(hero->subID == 45))                                        // and the hero is Yog (based on Solmyr)
+			(hero->subID == 45))                                // and the hero is Yog (based on Solmyr)
 		{
 			// "Yog has given up magic in all its forms..."
 			LOCPLINT->showInfoDialog(CGI->generaltexth->allTexts[736]);