Skip to content

Commit

Permalink
ACTIONSCRIPT: Reset return value after method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Feb 23, 2019
1 parent 011e4b3 commit 5681dac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aurora/actionscript/asbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,7 @@ void ASBuffer::actionCallMethod(AVM &avm) {

avm.setReturnValue(Variable());
_stack.push((*function)(avm));
avm.setReturnValue(Variable());

if (!prevThis.isUndefined())
avm.storeRegister(prevThis, 1);
Expand Down

0 comments on commit 5681dac

Please sign in to comment.