diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-17 16:23:09 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-17 16:23:09 +0200 |
commit | ed4101cd42c3ddb08ce40e934d371c467d1e9e0e (patch) | |
tree | e1bac714bdfea665fde99bfdc9599b51096eb457 | |
parent | 780f069d10b120968ae5867cc7e5a0da1ed05054 (diff) | |
download | lanes-ed4101cd42c3ddb08ce40e934d371c467d1e9e0e.tar.gz lanes-ed4101cd42c3ddb08ce40e934d371c467d1e9e0e.tar.bz2 lanes-ed4101cd42c3ddb08ce40e934d371c467d1e9e0e.zip |
Fix validation of boolean settings
-rw-r--r-- | src/lanes.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index 29fc4a9..6342ca9 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -109,7 +109,7 @@ local default_params = | |||
109 | 109 | ||
110 | local boolean_param_checker = function(val_) | 110 | local boolean_param_checker = function(val_) |
111 | -- non-'boolean-false' should be 'boolean-true' or nil | 111 | -- non-'boolean-false' should be 'boolean-true' or nil |
112 | return val_ and (val_ == true) or true | 112 | return (not val_) or (val_ == true) |
113 | end | 113 | end |
114 | 114 | ||
115 | local param_checkers = | 115 | local param_checkers = |