Skip to content

Commit 2b989ff

Browse files
committed
Do not show tabs for goods in distribution gui having only one entry
1 parent 27f7c5e commit 2b989ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/s25main/ingameWindows/iwDistribution.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,6 @@ void iwDistribution::CreateGroups()
210210
};
211211
for(auto& group : groups)
212212
helpers::erase_if(group.entries, isUnused);
213+
214+
helpers::erase_if(groups, [](DistributionGroup& group) { return group.entries.size() == 1; });
213215
}

0 commit comments

Comments
 (0)