Commit a00ff223 authored by Oscar Campos's avatar Oscar Campos
Browse files

fix: fix wrong conversion to uintptr to apply pointer aritmetict to...

fix: fix wrong conversion to uintptr to apply pointer aritmetict to **C.godot_variant to iterate the array
parent 56c65385
......@@ -558,7 +558,7 @@ func go_method_func(godotObject *C.godot_object, methodData unsafe.Pointer, user
variantArgs = append(variantArgs, variant)
// Convert the pointer into a uintptr so we can perform artithmetic on it.
arrayPtr := uintptr(unsafe.Pointer(args))
arrayPtr := uintptr(unsafe.Pointer(arg))
// Add the size of the godot_variant pointer to our array pointer to get the position
// of the next argument.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment