【修复】修复 cfg lua的模块代码bug

main
walon 2020-11-28 15:59:03 +08:00
parent f9a60b6e63
commit 2be7de7eb7
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ local function InitTypes(methods)
class._deserialize = function(bs)
local o = {
{{~ for field in bean.hierarchy_export_fields ~}}
{{~if !need_marshal_bool_prefix field.ctype~}}
{{~if !(need_marshal_bool_prefix field.ctype)~}}
{{field.name}} = {{lua_undering_deserialize 'bs' field.ctype}},
{{~else~}}
{{field.name}} = {{if !field.ctype.is_bool}}readBool(bs) and {{lua_undering_deserialize 'bs' field.ctype}} or nil {{-else-}} readNullableBool(bs) {{-end-}},