Selaa lähdekoodia

Little fix in braces #2.

FeniksFire 8 vuotta sitten
vanhempi
sitoutus
d045f59a11
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      client/widgets/CGarrisonInt.cpp

+ 4 - 2
client/widgets/CGarrisonInt.cpp

@@ -514,11 +514,13 @@ void CGarrisonInt::setSplittingMode(bool on)
 
 	if (inSplittingMode || on)
 	{
-		for(CGarrisonSlot * slot : slotsUp){
+		for(CGarrisonSlot * slot : slotsUp)
+		{
 			if(slot!=getSelection())
 				slot->setHighlight( ( on && (slot->our() || slot->ally()) && (slot->creature == nullptr || slot->creature == getSelection()->creature)));
 		}
-		for(CGarrisonSlot * slot : slotsDown){
+		for(CGarrisonSlot * slot : slotsDown)
+		{
 			if(slot!=getSelection())
 				slot->setHighlight( ( on && (slot->our() || slot->ally()) && (slot->creature == nullptr || slot->creature == getSelection()->creature)));
 		}