From 2cb029bed41d42b6174e601b7a5d369f8472086e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 00:08:33 +0000 Subject: [PATCH] Decompile fn_04238 (CMCStoreInfoBackup::ExportData) Batch #11414 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_04238 CMCStoreInfoBackup::ExportData: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Store/StoreBackupData.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Contents/Store/StoreBackupData.cpp b/Source/Contents/Store/StoreBackupData.cpp index 1c028a32..d8dc5736 100644 --- a/Source/Contents/Store/StoreBackupData.cpp +++ b/Source/Contents/Store/StoreBackupData.cpp @@ -73,7 +73,9 @@ void CMCStoreInfoBackup::ExportData(Json::Value& data) const { data["Title"] = ToUtf8(this->title, g_textCodePage); Json::Value values; - for (const ITEM_INFO& item : g_session.unknown_1758) { + const int itemCount = g_session.GetList9Size(); + for (int itemIndex = 0; itemIndex < itemCount; ++itemIndex) { + const ITEM_INFO item = g_session.GetItem1758At(itemIndex); Json::Value value; value["ID"] = std::atoi(item.itemId.c_str()); value["Count"] = item.quantity;