Fix enum toGodot

This commit is contained in:
Ruslan Mustakov 2017-07-27 16:58:22 +07:00
commit 69cb828750

View file

@ -287,7 +287,7 @@ proc godotVariantType*(T: typedesc[enum]): VariantType {.inline.} =
VariantType.Int VariantType.Int
proc toGodot*[T: enum](self: T): Variant {.inline.} = proc toGodot*[T: enum](self: T): Variant {.inline.} =
variant(ord(self)) variant(int64(ord(self)))
proc fromGodot*[T: enum](self: var T, val: Variant): ConversionResult = proc fromGodot*[T: enum](self: var T, val: Variant): ConversionResult =
if val.getType() == VariantType.Int: if val.getType() == VariantType.Int: