From 291e14a32a742a202f04da57d8fc3a14ca26c3bd Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Wed, 26 Jul 2017 15:29:01 +0700 Subject: [PATCH] Fix table to godot converter --- godot/nim/godotnim.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/godot/nim/godotnim.nim b/godot/nim/godotnim.nim index e46055b..b8dd95c 100644 --- a/godot/nim/godotnim.nim +++ b/godot/nim/godotnim.nim @@ -483,8 +483,7 @@ proc godotVariantType*(T: typedesc[Table|TableRef]): VariantType {.inline.} = VariantType.Dictionary proc toGodot*[T: Table or TableRef](t: T): Variant = - var dict: Dictionary - initDictionary(dict) + let dict = initDictionary() mixin toGodot for k, v in t.pairs(): dict[toGodot(k)] = toGodot(v)