Skip to content

Commit 6b09d08

Browse files
committed
Fix accepting Option params
1 parent ce03d02 commit 6b09d08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

godot.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.8.3"
1+
version = "0.8.4"
22
author = "Xored Software, Inc."
33
description = "Godot Engine bindings"
44
license = "MIT"

godot/nim/godotnim.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ proc fromVariant*[T](option: var Option[T], val: Variant): ConversionResult =
818818
var v: T
819819
result = fromVariant(v, val)
820820
if result == ConversionResult.OK:
821-
option = some(result)
821+
option = some(v)
822822
823823
proc godotTypeInfo*(T: typedesc[Table|TableRef|OrderedTable|OrderedTableRef]): GodotTypeInfo {.inline.} =
824824
result.variantType = VariantType.Dictionary

0 commit comments

Comments
 (0)