Skip to content

Commit

Permalink
Update player.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano authored Mar 22, 2024
1 parent 979ac0e commit 292412d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/creatures/players/player.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ class Player final : public Creature, public Cylinder, public Bankable {
auto it = stashItems.find(itemId);
if (it != stashItems.end()) {
stashItems[itemId] += amount;
setSaveStash(true) return;
setSaveStash(true);
return;
}

stashItems[itemId] = amount;
Expand All @@ -711,7 +712,8 @@ class Player final : public Creature, public Cylinder, public Bankable {
} else {
return false;
}
setSaveStash(true) return true;
setSaveStash(true);
return true;
}
return false;
}
Expand Down

0 comments on commit 292412d

Please sign in to comment.