Decompile fn_22016 (CGameMode::ReceiveClanChat)

Batch #16050 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_22016 CGameMode::ReceiveClanChat: logic confirmed by peer review

Peer-reviewed-by: alisonrag, youko
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 14:20:05 +00:00
commit e0757bb8fb

View file

@ -2945,11 +2945,12 @@ void CGameMode::ReceivePendingItem1718List(const unsigned char* packet) {
void CGameMode::ReceiveClanChat(const unsigned char* packet) {
const int messageLength = *reinterpret_cast<const std::int16_t*>(packet + 2) - 28;
if (messageLength < 0 || messageLength > 220) {
if (static_cast<unsigned int>(messageLength) > 220) {
return;
}
char message[220];
std::memset(message, 0, sizeof(message));
strcpy_s(message, sizeof(message), reinterpret_cast<const char*>(packet + 28));