diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-24 19:36:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 19:36:26 +0200 |
commit | 53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5 (patch) | |
tree | ee2e85916ffadc40bc0564348ac5041196cbf28a /src/control | |
parent | update librw (diff) | |
parent | 64-bit on Windows (diff) | |
download | re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.gz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.bz2 re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.lz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.xz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.zst re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Replay.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp index 8b34cc3b..1a050bee 100644 --- a/src/control/Replay.cpp +++ b/src/control/Replay.cpp @@ -1483,7 +1483,7 @@ void CReplay::StreamAllNecessaryCarsAndPeds(void) for (int slot = 0; slot < NUM_REPLAYBUFFERS; slot++) { if (BufferStatus[slot] == REPLAYBUFFER_UNUSED) continue; - for (int offset = 0; Buffers[slot][offset] != REPLAYPACKET_END; offset += FindSizeOfPacket(Buffers[slot][offset])) { + for (size_t offset = 0; Buffers[slot][offset] != REPLAYPACKET_END; offset += FindSizeOfPacket(Buffers[slot][offset])) { switch (Buffers[slot][offset]) { case REPLAYPACKET_VEHICLE: CStreaming::RequestModel(((tVehicleUpdatePacket*)&Buffers[slot][offset])->mi, 0); @@ -1505,7 +1505,7 @@ void CReplay::FindFirstFocusCoordinate(CVector *coord) for (int slot = 0; slot < NUM_REPLAYBUFFERS; slot++) { if (BufferStatus[slot] == REPLAYBUFFER_UNUSED) continue; - for (int offset = 0; Buffers[slot][offset] != REPLAYPACKET_END; offset += FindSizeOfPacket(Buffers[slot][offset])) { + for (size_t offset = 0; Buffers[slot][offset] != REPLAYPACKET_END; offset += FindSizeOfPacket(Buffers[slot][offset])) { if (Buffers[slot][offset] == REPLAYPACKET_GENERAL) { *coord = ((tGeneralPacket*)&Buffers[slot][offset])->player_pos; return; |