From 962d9b5668929cef3c31b6eb4549625573150cfe Mon Sep 17 00:00:00 2001 From: _AMD_ Date: Tue, 16 Mar 2021 00:34:13 +0200 Subject: [PATCH] Update deposit_funds.lua fix [ERROR] hello:51: attempt to index field 'curr_m' (a nil value) --- addons/igs-core/lua/igs/interface/windows/deposit_funds.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/igs-core/lua/igs/interface/windows/deposit_funds.lua b/addons/igs-core/lua/igs/interface/windows/deposit_funds.lua index 9d0c0f4..ffafe66 100644 --- a/addons/igs-core/lua/igs/interface/windows/deposit_funds.lua +++ b/addons/igs-core/lua/igs/interface/windows/deposit_funds.lua @@ -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) .. " руб"