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.
This commit is contained in:
ragnarok-clanker 2026-11-09 01:58:47 +00:00
commit 5821c5dc95

View file

@ -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) {