mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Little fix in braces #2.
This commit is contained in:
parent
68c618cb99
commit
d045f59a11
@ -514,11 +514,13 @@ void CGarrisonInt::setSplittingMode(bool on)
|
|||||||
|
|
||||||
if (inSplittingMode || on)
|
if (inSplittingMode || on)
|
||||||
{
|
{
|
||||||
for(CGarrisonSlot * slot : slotsUp){
|
for(CGarrisonSlot * slot : slotsUp)
|
||||||
|
{
|
||||||
if(slot!=getSelection())
|
if(slot!=getSelection())
|
||||||
slot->setHighlight( ( on && (slot->our() || slot->ally()) && (slot->creature == nullptr || slot->creature == getSelection()->creature)));
|
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())
|
if(slot!=getSelection())
|
||||||
slot->setHighlight( ( on && (slot->our() || slot->ally()) && (slot->creature == nullptr || slot->creature == getSelection()->creature)));
|
slot->setHighlight( ( on && (slot->our() || slot->ally()) && (slot->creature == nullptr || slot->creature == getSelection()->creature)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user