Skip to content

Commit

Permalink
Update deposit_funds.lua
Browse files Browse the repository at this point in the history
fix [ERROR] hello:51: attempt to index field 'curr_m' (a nil value)
  • Loading branch information
AMD-NICK authored Mar 15, 2021
1 parent 827bd28 commit 962d9b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addons/igs-core/lua/igs/interface/windows/deposit_funds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ function IGS.WIN.Deposit(iRealSum)
end
self.real_m.Think = function()
local rub = tonumber(self.real_m:GetValue())
local igs = tonumber(self.curr_m:GetValue())

if cd then
self.purchase:SetText(
"Пополнить счет на " .. niceSum(rub,0) .. " руб"
)
else
local igs = tonumber(self.curr_m:GetValue())
self.purchase:SetText(
"Пополнить на " .. IGS.SignPrice( niceSum(igs,0) ) ..
" за " .. niceSum(rub,0) .. " руб"
Expand Down

0 comments on commit 962d9b5

Please sign in to comment.