1
0
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:
Aaron van Geffen
2018-03-13 23:36:08 +01:00
parent e514b2c9cb
commit a68c5301eb

View File

@@ -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;
}
}