Decompile 2 functions in Source/Client/Mode/GameModeHandlers.cpp
Batch #17621 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_22002 CGameMode::ReceiveActorNameCard: logic confirmed by peer review - fn_22011 CGameMode::ReceiveActorClanName: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
22a001c11c
commit
09c5612215
1 changed files with 3 additions and 2 deletions
|
|
@ -1627,7 +1627,7 @@ void CGameMode::ReceiveClanLeave(const unsigned char* packet) {
|
|||
// OFFSET: 0x00D657D0
|
||||
// FUNCTION: fn_22002
|
||||
void CGameMode::ReceiveActorNameCard(const unsigned char* packet) {
|
||||
char name[25] = {0};
|
||||
char name[25] = "";
|
||||
|
||||
memcpy_s(name, 24, packet + 6, 24);
|
||||
name[24] = '\0';
|
||||
|
|
@ -1727,7 +1727,8 @@ void CGameMode::ReceiveGameOptions(int count, const GameOptionEntry* entries) {
|
|||
void CGameMode::ReceiveActorClanName(const unsigned char* data) {
|
||||
const auto* packet = reinterpret_cast<const ActorClanNamePacket*>(data);
|
||||
|
||||
this->nameCard.SetValue3(packet->aid, std::string(packet->name, packet->name + (packet->length - 8)));
|
||||
const char* name = packet->name;
|
||||
this->nameCard.SetValue3(packet->aid, std::string(name, name + (packet->length - 8)));
|
||||
}
|
||||
|
||||
// OFFSET: 0x00D66470
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue