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:
parent
a8fc1dbac0
commit
5821c5dc95
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue