-
GDScript: Don't re-evaluate index on assigment with operation · cc9ca9ebGeorge Marques authored
Pass the calculated index from the stack and use the same to get and set the value. This avoids a function with side effects being evaluated twice when using indexing in an assignment with operation statement (e.g. a[function()] += 1).
×