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:
parent
3f34d328b8
commit
8422ae0ce8
1 changed files with 6 additions and 0 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue