diff options
author | George Marques <george@gmarqu.es> | 2020-01-09 10:37:27 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-01-09 10:43:29 -0300 |
commit | cc9ca9eb34d2f9ab0fe44c462faa644cc8700c59 (patch) | |
tree | 790568803182bef725242bb97f89e776c0bafec1 /scene/resources/default_theme | |
parent | e97e951741c5f1a5865e1b551edb184af6374999 (diff) |
GDScript: Don't re-evaluate index on assigment with operation
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).
Diffstat (limited to 'scene/resources/default_theme')
0 files changed, 0 insertions, 0 deletions