Optimization

This commit is contained in:
Jérémie N'gadi
2017-08-26 09:01:46 +02:00
parent e6212deddc
commit 64db46ed64
+3 -1
View File
@@ -107,7 +107,9 @@ function CalculateBankSavings(d, h, m)
local interests = math.floor(account.money / 100 * Config.BankSavingPercentage)
bankInterests = bankInterests + interests
account.addMoney(interests)
table.insert(asyncTasks, function(cb)
account.addMoney(interests)
end)
end)