1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:53:50 +00:00

[General] Fix iterators in ProxyMasterPacket

This commit is contained in:
Koncord 2017-05-07 02:48:02 +08:00
parent 3f34d328b8
commit 8422ae0ce8

View file

@ -81,6 +81,8 @@ namespace mwmp
if (!send) if (!send)
server.players.push_back(player); server.players.push_back(player);
else
plIt++;
} }
int pluginsCount = server.plugins.size(); int pluginsCount = server.plugins.size();
@ -101,6 +103,10 @@ namespace mwmp
packet->RW(plugin.name, send); packet->RW(plugin.name, send);
packet->RW(plugin.hash, send); packet->RW(plugin.hash, send);
if (!send)
server.plugins.push_back(plugin);
else
pluginIt++;
} }
} }
}; };