1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 16:32:41 +01:00

Codechange: replace MAX_UVALUE with std::numeric_limits::max

This commit is contained in:
Rubidium
2025-01-30 17:09:47 +01:00
committed by rubidium42
parent f67589d96e
commit 4ca1fe6c32
14 changed files with 29 additions and 28 deletions

View File

@@ -224,7 +224,7 @@ void Industry::PostDestructor(size_t)
{
if (Industry::GetNumItems() == 0) return nullptr;
int num = RandomRange((uint16_t)Industry::GetNumItems());
size_t index = MAX_UVALUE(size_t);
size_t index = std::numeric_limits<size_t>::max();
while (num >= 0) {
num--;