Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Fix double remove money on create market offer (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Jan 5, 2022
1 parent e34e401 commit 3228c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2090,10 +2090,10 @@ bool Game::removeMoney(Cylinder* cylinder, uint64_t money, uint32_t flags /*= 0*
const uint32_t removeCount = std::ceil(money / static_cast<double>(worth));
addMoney(cylinder, (worth * removeCount) - money, flags);
internalRemoveItem(item, removeCount);
break;
return true;
} else {
internalRemoveItem(item);
break;
return true;
}
}

Expand Down

0 comments on commit 3228c9e

Please sign in to comment.