Fix Vector2 +=

This commit is contained in:
Ruslan Mustakov 2018-01-15 11:01:48 +07:00
commit ae3171cb98
2 changed files with 2 additions and 2 deletions

View file

@ -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)