Use a range-based for loop in NetworkGroup::Write, too.

This commit is contained in:
Aaron van Geffen committed 2018-03-14 01:25:10 +01:00
1 parent e514b2c9cb
commit a68c5301eb
1 file changed
+2 -2
+2 -2
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;
}
}