Fix bug where booleans were always serialized as false

This commit is contained in:
Lonami Exo 2017-09-29 12:57:53 +02:00
parent c134d9ba27
commit 195bba6f21

View File

@ -496,7 +496,9 @@ class TLGenerator:
elif 'Bool' == arg.type:
# 0x997275b5 if boolean else 0xbc799737
builder.write(r"b'\xb5ur\x99' if {} else b'7\x97y\xbc'")
builder.write(
r"b'\xb5ur\x99' if {} else b'7\x97y\xbc'".format(name)
)
elif 'true' == arg.type:
pass # These are actually NOT written! Only used for flags