mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-23 10:51:58 -05:00
Merge pull request #13996 from ZehMatt/fix-13992
Fix #13992: Do not show empty groups in guest list
This commit is contained in:
commit
2a06043860
1 changed files with 4 additions and 1 deletions
|
@ -855,7 +855,10 @@ private:
|
||||||
_groups.begin(), _groups.end(), [](const GuestGroup& a, const GuestGroup& b) { return a.NumGuests > b.NumGuests; });
|
_groups.begin(), _groups.end(), [](const GuestGroup& a, const GuestGroup& b) { return a.NumGuests > b.NumGuests; });
|
||||||
|
|
||||||
// Remove up to MaxGroups
|
// Remove up to MaxGroups
|
||||||
_groups.resize(MaxGroups);
|
if (_groups.size() > MaxGroups)
|
||||||
|
{
|
||||||
|
_groups.resize(MaxGroups);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue