forked from rosebudai/OpenRCT2-Web
Use a range-based for loop in NetworkGroup::Write, too.
This commit is contained in:
1 parent
e514b2c9cb
commit
a68c5301eb
1 file changed
+2
-2
@@ -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