From 5821c5dc95157f141fc622adc43961ebbf04edc8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 01:58:47 +0000 Subject: [PATCH] Decompile fn_23345 (CSession::RemoveItem1718ByItemId) Batch #14973 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_23345 CSession::RemoveItem1718ByItemId: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/ClientItemLists.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Contents/ClientItemLists.cpp b/Source/Contents/ClientItemLists.cpp index 941949c41..90b20147b 100644 --- a/Source/Contents/ClientItemLists.cpp +++ b/Source/Contents/ClientItemLists.cpp @@ -1614,7 +1614,8 @@ void CSession::RemoveItem1760(const ITEM_INFO& item) { // FUNCTION: fn_23345 void CSession::RemoveItem1718ByItemId(const ITEM_INFO& item) { for (auto it = this->shopItems.begin(); it != this->shopItems.end(); ++it) { - if (std::atoi(it->itemId.c_str()) == std::atoi(item.itemId.c_str())) { + const int itemId = std::atoi(it->itemId.c_str()); + if (itemId == std::atoi(item.itemId.c_str())) { if (it->quantity != -1) { it->quantity -= item.quantity; if (it->quantity <= 0) {