mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Use range-based for loops in libopenrct2
This commit is contained in:
committed by
Michael Steenbeek
parent
3c2aaefc85
commit
628039dd8a
@@ -498,9 +498,9 @@ static uint8 perm[512];
|
||||
|
||||
static void noise_rand()
|
||||
{
|
||||
for (uint32 i = 0; i < Util::CountOf(perm); i++)
|
||||
for (auto &i : perm)
|
||||
{
|
||||
perm[i] = util_rand() & 0xFF;
|
||||
i = util_rand() & 0xFF;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user