test(master): fix server list flag test compile

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-30 04:41:26 -05:00
parent a919a57e5e
commit ebe77ee45c

View File

@@ -674,7 +674,7 @@ TEST(MasterPacketsTests, ServerListWithoutOutdatedFlags) {
response.Serialize(full);
// Drop the last byte (the one flag)
RakNet::BitStream older;
older.Write(full.GetData(), static_cast<unsigned int>(full.GetNumberOfBytesUsed() - 1));
older.Write(reinterpret_cast<const char*>(full.GetData()), static_cast<unsigned int>(full.GetNumberOfBytesUsed() - 1));
MasterPackets::ServerListResponse read;
ASSERT_TRUE(read.Deserialize(older));
ASSERT_EQ(read.instances.size(), 1u);