Closed GamerGambit closed 1 year ago
baselib/toboolean logic is currently broken for booleans since tonumber(true) returns nil.
tonumber(true)
nil
] lua_dostring print(toboolean(true)) false
This PR adds a type check for booleans.
baselib/toboolean logic is currently broken for booleans since
tonumber(true)
returnsnil
.This PR adds a type check for booleans.