Skip to content

Commit e8ab781

Browse files
committed
fix: money.add log #390
1 parent 6786105 commit e8ab781

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/legacy/main/EconomySystem.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ long long EconomySystem::getMoney(std::string const& player) { return LLMoney_Ge
1616

1717
bool EconomySystem::setMoney(std::string const& player, long long money) { return LLMoney_Set(player, money); }
1818

19-
bool EconomySystem::addMoney(std::string const& player, long long money) {
20-
return LLMoney_Set(player, LLMoney_Get(player) + money);
21-
}
19+
bool EconomySystem::addMoney(std::string const& player, long long money) { return LLMoney_Add(player, money); }
2220

2321
bool EconomySystem::reduceMoney(std::string const& player, long long money) { return LLMoney_Reduce(player, money); }
2422

0 commit comments

Comments
 (0)