mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Use a range-based for loop in NetworkGroup::Write, too.
This commit is contained in:
@@ -102,9 +102,9 @@ void NetworkGroup::Write(NetworkPacket &packet)
|
||||
{
|
||||
packet << Id;
|
||||
packet.WriteString(GetName().c_str());
|
||||
for (size_t i = 0; i < ActionsAllowed.size(); i++)
|
||||
for (const auto &action : ActionsAllowed)
|
||||
{
|
||||
packet << ActionsAllowed[i];
|
||||
packet << action;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user