GDScript: Fix member assignment with operation

It was wrongly updating the assigned value with the result of the
operation.
This commit is contained in:
George Marques 2021-09-21 16:23:42 -03:00
parent adc9500e54
commit 84956fee4b
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 33 additions and 8 deletions

View file

@ -0,0 +1,13 @@
extends Node
func test():
process_priority = 10
var change = 20
print(process_priority)
print(change)
process_priority += change
print(process_priority)
print(change)

View file

@ -0,0 +1,5 @@
GDTEST_OK
10
20
30
20