Decompile fn_09821 (UIMacroDetectorWnd::SendMsg)

Batch #13431 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_09821 UIMacroDetectorWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: eAthena, Tanke
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-06 19:56:09 +00:00
commit dc4095d532

View file

@ -111,8 +111,7 @@ int UIMacroDetectorWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a,
CaptchaAnswerPacket packet;
packet.id = 0xA5C;
memcpy_s(packet.text, sizeof(packet.text), this->m_editCtrl->Text(), sizeof(packet.text));
CRagConnection& connection = GetRagConnection();
connection.Send(g_packetLengths.FixedLength(packet.id), &packet);
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
this->m_lastAnswer = this->m_editCtrl->Text();
g_serverLanguage->ResetInput();
}