mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
changes in number conversion
This commit is contained in:
@@ -79,7 +79,6 @@ end
|
||||
|
||||
local oldtonumber = tonumber
|
||||
function tonumber(v)
|
||||
local v = oldtonumber(v)
|
||||
if not v then return 0 end
|
||||
return v
|
||||
if v == nil then return 0 end
|
||||
return oldtonumber(v)
|
||||
end
|
||||
|
Reference in New Issue
Block a user