mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
Codechange: replace MAX_UVALUE with std::numeric_limits::max
This commit is contained in:
@@ -197,7 +197,7 @@ void Town::InitializeLayout(TownLayout layout)
|
||||
{
|
||||
if (Town::GetNumItems() == 0) return nullptr;
|
||||
int num = RandomRange((uint16_t)Town::GetNumItems());
|
||||
size_t index = MAX_UVALUE(size_t);
|
||||
size_t index = std::numeric_limits<size_t>::max();
|
||||
|
||||
while (num >= 0) {
|
||||
num--;
|
||||
|
||||
Reference in New Issue
Block a user