From f49d92deb8efefdc7911d70125ad1e04027fbd79 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 01:57:44 +0000 Subject: [PATCH] Decompile fn_23844 (sub_E198F0) Batch #11069 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_23844 sub_E198F0: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Skills/ClientSkills.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Skills/ClientSkills.cpp b/Source/Contents/Skills/ClientSkills.cpp index c6459db0..b14b2a3f 100644 --- a/Source/Contents/Skills/ClientSkills.cpp +++ b/Source/Contents/Skills/ClientSkills.cpp @@ -45,8 +45,10 @@ void sub_E198F0() { int index = 0; int mapId = 0; int propertyId = 0; + while (index < size && mapId <= 39) { char character = buffer[index++]; + while (index < size) { if (character == '/') { if (buffer[index] == '/') { @@ -66,6 +68,7 @@ void sub_E198F0() { } else { char valueText[16] = {}; int textIndex = 0; + while (character != ' ' && character != '\t') { valueText[textIndex++] = character; character = buffer[index++]; @@ -75,7 +78,7 @@ void sub_E198F0() { } } - g_mapPropertyMgr->m_properties[mapId].SetValue(propertyId, std::atoi(valueText)); + g_mapPropertyMgr->SetValue(mapId, propertyId, std::atoi(valueText)); ++propertyId; if (propertyId >= 27) { ++mapId; @@ -85,9 +88,6 @@ void sub_E198F0() { } } - if (index >= size) { - break; - } character = buffer[index++]; } }