mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix warning
This commit is contained in:
parent
254041985f
commit
fae45d6989
|
@ -2061,7 +2061,7 @@ void Network::Client_Handle_GAME_ACTION(NetworkConnection& connection, NetworkPa
|
|||
uint8 playerid;
|
||||
packet >> tick >> type >> playerid;
|
||||
MemoryStream stream;
|
||||
for (int i = packet.BytesRead; i < packet.Size; ++i) {
|
||||
for (size_t i = packet.BytesRead; i < packet.Size; ++i) {
|
||||
stream.WriteValue(((uint8*)packet.GetData())[i]);
|
||||
}
|
||||
stream.SetPosition(0);
|
||||
|
@ -2080,7 +2080,7 @@ void Network::Server_Handle_GAME_ACTION(NetworkConnection& connection, NetworkPa
|
|||
|
||||
packet >> tick >> commandType;
|
||||
MemoryStream stream;
|
||||
for (int i = packet.BytesRead; i < packet.Size; ++i) {
|
||||
for (size_t i = packet.BytesRead; i < packet.Size; ++i) {
|
||||
stream.WriteValue(((uint8*)packet.GetData())[i]);
|
||||
}
|
||||
stream.SetPosition(0);
|
||||
|
|
Loading…
Reference in New Issue