mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Fix warning
This commit is contained in:
committed by
Michał Janiszewski
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);
|
||||
|
||||
Reference in New Issue
Block a user