From 5f8e29ac3ddaaa85863c4d21fddb12fced57d4ac Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 12:41:49 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Skills/ClientSkills.cpp Batch #11963 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_23738 CSession::UpdateRecord6144: logic confirmed by peer review (already on main) - fn_23775 CSession::SplitDate: logic confirmed by peer review Peer-reviewed-by: SapitoSucio, Tanke, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Skills/ClientSkills.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Contents/Skills/ClientSkills.cpp b/Source/Contents/Skills/ClientSkills.cpp index c08da8a3f..f7486d464 100644 --- a/Source/Contents/Skills/ClientSkills.cpp +++ b/Source/Contents/Skills/ClientSkills.cpp @@ -655,9 +655,7 @@ int CSession::CountItems5C68() const { // OFFSET: 0x00E09080 // FUNCTION: fn_23775 void CSession::SplitDate(__time32_t time, std::uint16_t& year, std::uint16_t& month, std::uint16_t& day) const { - if (time < 0) { - time = 0; - } + time = time > 0 ? time : 0; const std::tm local = *_localtime32(&time); year = static_cast(local.tm_year + 1900);