Browse Source

Little fix in braces #2.

FeniksFire 8 năm trước cách đây
mục cha
commit
d045f59a11
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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)));
 		}