There was an error while loading. Please reload this page.
1 parent 6786105 commit e8ab781Copy full SHA for e8ab781
1 file changed
src/legacy/main/EconomySystem.cpp
@@ -16,9 +16,7 @@ long long EconomySystem::getMoney(std::string const& player) { return LLMoney_Ge
16
17
bool EconomySystem::setMoney(std::string const& player, long long money) { return LLMoney_Set(player, money); }
18
19
-bool EconomySystem::addMoney(std::string const& player, long long money) {
20
- return LLMoney_Set(player, LLMoney_Get(player) + money);
21
-}
+bool EconomySystem::addMoney(std::string const& player, long long money) { return LLMoney_Add(player, money); }
22
23
bool EconomySystem::reduceMoney(std::string const& player, long long money) { return LLMoney_Reduce(player, money); }
24
0 commit comments