mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 14:03:26 +02:00
lua fixes
This commit is contained in:
@@ -76,3 +76,10 @@ function toboolean(str)
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
local oldtonumber = tonumber
|
||||
function tonumber(v)
|
||||
local v = oldtonumber(v)
|
||||
if not v then return 0 end
|
||||
return v
|
||||
end
|
||||
|
Reference in New Issue
Block a user