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:
parent
74a57afe2f
commit
4de5cee9c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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]));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue