mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Use range-based for loops in libopenrct2
This commit is contained in:
committed by
Michael Steenbeek
parent
3c2aaefc85
commit
628039dd8a
@@ -55,9 +55,9 @@ struct ObjectEntryHash
|
||||
size_t operator()(const rct_object_entry &entry) const
|
||||
{
|
||||
uint32 hash = 5381;
|
||||
for (sint32 i = 0; i < 8; i++)
|
||||
for (auto i : entry.name)
|
||||
{
|
||||
hash = ((hash << 5) + hash) + entry.name[i];
|
||||
hash = ((hash << 5) + hash) + i;
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user