diff --git a/src/creatures/players/player.hpp b/src/creatures/players/player.hpp index 04cd6a0b607..cbd81e829da 100644 --- a/src/creatures/players/player.hpp +++ b/src/creatures/players/player.hpp @@ -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; @@ -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; }