Remove wrong assertion (false for references)
This commit is contained in:
parent
3d9839ceed
commit
f54de5cd46
1 changed files with 0 additions and 2 deletions
|
|
@ -140,8 +140,6 @@ proc deinit*(obj: NimGodotObject) =
|
|||
assert(not obj.godotObject.isNil)
|
||||
obj.godotObject.deinit()
|
||||
obj.godotObject = nil
|
||||
# linked object internal pointer should be unset from destructor
|
||||
assert(obj.linkedObject.isNil or obj.linkedObject.godotObject.isNil)
|
||||
|
||||
proc nimGodotObjectFinalizer*[T: NimGodotObject](obj: T) =
|
||||
if obj.godotObject.isNil: return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue