Skip to content

Commit

Permalink
Merge branch 'main' into represent-variant-containing-nil-as-swift-nil
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov authored Nov 14, 2024
2 parents e4c6f41 + a1af0de commit 4361551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SwiftGodot/Variant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public class Variant: Hashable, Equatable, CustomDebugStringConvertible {
guard gtype == .object else {
return nil
}
var value: UnsafeRawPointer?

var value: UnsafeRawPointer? = UnsafeRawPointer(bitPattern: 1)!
toType(.object, dest: &value)
guard let value else {
return nil
Expand Down

0 comments on commit 4361551

Please sign in to comment.