From bca90a1c200a6557d39a72d18917cd2ac8544d3d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 17:30:29 +0000 Subject: [PATCH] Decompile 5 functions in Source/Contents/ClientItemLists.cpp Batch #10806 by kyoshi: 5 byte-identical, 0 confirmed by peer review. - fn_23343 CSession::RemoveItem1758: byte-identical - fn_23344 CSession::RemoveItem1760: byte-identical - fn_23346 CSession::RemoveItem1718: byte-identical - fn_23349 CSession::RemoveItem1730: byte-identical - fn_23350 CSession::ReduceItem1718: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/ClientItemLists.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/Contents/ClientItemLists.cpp b/Source/Contents/ClientItemLists.cpp index 58353f26..823e8705 100644 --- a/Source/Contents/ClientItemLists.cpp +++ b/Source/Contents/ClientItemLists.cpp @@ -30,6 +30,8 @@ #include #include +extern template std::list::iterator std::list::erase(std::list::const_iterator) noexcept; + namespace { struct EquipSlotDecoder { EquipSlots Decode(int mask) const; @@ -1600,7 +1602,7 @@ void CSession::RemoveItem1758(ITEM_INFO& item) { if (it->unknown_0000[1] == item.unknown_0000[1]) { item.itemId = it->itemId; it->quantity -= item.quantity; - if (it->quantity < 1) { + if (it->quantity <= 0) { this->unknown_1758.erase(it); } return; @@ -1614,7 +1616,7 @@ void CSession::RemoveItem1760(const ITEM_INFO& item) { for (auto it = this->unknown_1760.begin(); it != this->unknown_1760.end(); ++it) { if (it->unknown_0000[1] == item.unknown_0000[1]) { it->quantity -= item.quantity; - if (it->quantity < 1) { + if (it->quantity <= 0) { this->unknown_1760.erase(it); } return; @@ -1645,7 +1647,7 @@ void CSession::RemoveItem1718(const ITEM_INFO& item) { if (it->unknown_0000[1] == item.unknown_0000[1]) { if (it->quantity != -1) { it->quantity -= item.quantity; - if (it->quantity < 1) { + if (it->quantity <= 0) { this->unknown_1718.erase(it); } } @@ -1674,7 +1676,7 @@ void CSession::RemoveItem1730(const ITEM_INFO& item) { for (auto it = this->unknown_1730.begin(); it != this->unknown_1730.end(); ++it) { if (it->unknown_0000[1] == item.unknown_0000[1]) { it->quantity -= item.quantity; - if (it->quantity < 1) { + if (it->quantity <= 0) { this->unknown_1730.erase(it); } return; @@ -1688,7 +1690,7 @@ void CSession::ReduceItem1718(const ITEM_INFO& item) { for (auto it = this->unknown_1718.begin(); it != this->unknown_1718.end(); ++it) { if (it->unknown_0000[1] == item.unknown_0000[1]) { it->quantity -= item.quantity; - if (it->quantity < 1) { + if (it->quantity <= 0) { this->unknown_1718.erase(it); } return;