summaryrefslogtreecommitdiff
path: root/servers/audio/audio_effect.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2022-05-13 14:03:48 -0300
committerGeorge Marques <george@gmarqu.es>2022-05-13 20:15:34 -0300
commit102c312497ace1e81bb54b6c3ed3665d16ee1fef (patch)
tree1b7752546f9fc9e2038e161e0ea70bed5cc53c6b /servers/audio/audio_effect.cpp
parent694baff233c2efb4675f708389c9ff2bbc00bc03 (diff)
GDScript: Fix stack manipulation for `await`
The stack now contains three special addresses that should no be copied to the state, since it contains references that creates cycles. They can be recreated when the function is resumed. This commit also removes the clearing of stack from the GDScriptFunctionState destructor, since it should be cleared when the function exits. The state stack should only be cleared manually if the instance is freed before the state resumes (which is already being done). Otherwise this would destruct the stack twice, causing crashes.
Diffstat (limited to 'servers/audio/audio_effect.cpp')
0 files changed, 0 insertions, 0 deletions