Fix Vector2 +=
This commit is contained in:
parent
d4ab8a5524
commit
ae3171cb98
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ proc `+`*(self, other: Vector2): Vector2 {.inline.} =
|
|||
getGDNativeAPI().vector2OperatorAdd(self, other)
|
||||
|
||||
proc `+=`*(self: var Vector2, other: Vector2) {.inline.} =
|
||||
self += other
|
||||
self = self + other
|
||||
|
||||
proc `-`*(self, other: Vector2): Vector2 =
|
||||
getGDNativeAPI().vector2OperatorSubtract(self, other)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue