aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/LocalMP.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/LocalMP.cpp b/src/frontend/qt_sdl/LocalMP.cpp
index 9a3adf7..8d3dd8a 100644
--- a/src/frontend/qt_sdl/LocalMP.cpp
+++ b/src/frontend/qt_sdl/LocalMP.cpp
@@ -500,7 +500,8 @@ int SendPacketGeneric(u32 type, u8* packet, int len, u64 timestamp)
}
for (size_t i = safe; i < 0xa0; i++) {
- packet[0x36 + i] = VSR_PC_MSG_DATA[content_offset - 0x24 + i];
+ size_t msgdata_offset = content_offset + i - 0x24;
+ packet[0x36 + i] = VSR_PC_MSG_DATA[msgdata_offset];
}
}
#endif