Decompile fn_23385 (CSession::FindInventoryIndicesByItemId)

Batch #13656 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review.

- fn_23385 CSession::FindInventoryIndicesByItemId: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 21:09:30 +00:00
commit 4de5cee9c0

View file

@ -899,7 +899,7 @@ std::uint16_t CSession::FindInventoryIndexByItemId(int itemId) {
std::vector<int> CSession::FindInventoryIndicesByItemId(int itemId, unsigned char identifiedOnly) {
std::vector<int> indices;
for (auto it = this->m_inventoryItems.begin(); it != this->m_inventoryItems.end(); ++it) {
if (std::atoi(it->itemId.c_str()) == itemId && (identifiedOnly != 1 || it->identified == 1)) {
if (itemId == std::atoi(it->itemId.c_str()) && (identifiedOnly != 1 || it->identified == 1)) {
indices.push_back(static_cast<int>(it->unknown_0000[1]));
}
}