"vscode:/vscode.git/clone" did not exist on "f15f63aed2fb45d28bfa3554b453a42f3e8cc3ee"
Commit c162d48d authored by Isaac Brodsky's avatar Isaac Brodsky
Browse files

Fix nullable bool

parent b2f1afc5
...@@ -125,7 +125,7 @@ namespace NLua ...@@ -125,7 +125,7 @@ namespace NLua
// null can always be assigned to nullable // null can always be assigned to nullable
if (luatype == LuaTypes.Nil) { if (luatype == LuaTypes.Nil) {
// Return the correct extractor anyways // Return the correct extractor anyways
if (netParamIsNumeric) if (netParamIsNumeric || paramType == typeof (bool))
return extractValues [extractKey]; return extractValues [extractKey];
return extractNetObject; return extractNetObject;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment