mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Fix divide by zero when there is no scenery (#24371)
This commit is contained in:
@@ -1372,7 +1372,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
int32_t GetMaxTabCountInARow()
|
||||
{
|
||||
int32_t tabEntries = static_cast<int32_t>(_tabEntries.size());
|
||||
return std::min(tabEntries, MaxTabsPerRow);
|
||||
return std::clamp(tabEntries, 1, MaxTabsPerRow);
|
||||
}
|
||||
|
||||
void PrepareWidgets()
|
||||
|
||||
Reference in New Issue
Block a user