GDScript: Fix member assignment with operation
It was wrongly updating the assigned value with the result of the operation.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user