diff --git a/client/widgets/CGarrisonInt.cpp b/client/widgets/CGarrisonInt.cpp index e62a577f3..d90594714 100644 --- a/client/widgets/CGarrisonInt.cpp +++ b/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))); }