diff --git a/src/NanoManager.cpp b/src/NanoManager.cpp index 38534d9..c692060 100644 --- a/src/NanoManager.cpp +++ b/src/NanoManager.cpp @@ -86,6 +86,7 @@ void NanoManager::nanoSkillUseHandler(CNSocket* sock, CNPacketData* data) { resp->iNanoStamina = 150; // Hardcoded for now sock->sendPacket(new CNPacketData((void*)resp, P_FE2CL_NANO_SKILL_USE_SUCC, sizeof(sP_FE2CL_NANO_SKILL_USE_SUCC), sock->getFEKey())); + DEBUGLOG( std::cout << U16toU8(plr.plr.PCStyle.szFirstName) << U16toU8(plr.plr.PCStyle.szLastName) << " requested to summon nano skill " << std::endl; ) diff --git a/src/PlayerManager.cpp b/src/PlayerManager.cpp index 47dd443..f956bbc 100644 --- a/src/PlayerManager.cpp +++ b/src/PlayerManager.cpp @@ -553,6 +553,9 @@ void PlayerManager::heartbeatPlayer(CNSocket* sock, CNPacketData* data) { } void PlayerManager::exitGame(CNSocket* sock, CNPacketData* data) { + if (data->size != sizeof(sP_CL2FE_REQ_PC_EXIT)) + return; + sP_CL2FE_REQ_PC_EXIT* exitData = (sP_CL2FE_REQ_PC_EXIT*)data->buf; sP_FE2CL_REP_PC_EXIT_SUCC* response = (sP_FE2CL_REP_PC_EXIT_SUCC*)xmalloc(sizeof(sP_FE2CL_REP_PC_EXIT_SUCC));