GDScript: Fix member assignment with operation
It was wrongly updating the assigned value with the result of the operation.
This commit is contained in:
parent
adc9500e54
commit
84956fee4b
3 changed files with 33 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
GDTEST_OK
|
||||
10
|
||||
20
|
||||
30
|
||||
20
|
||||
Loading…
Add table
Add a link
Reference in a new issue