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