Skip to content

Commit

Permalink
ACTIONSCRIPT: Finish if return value was set
Browse files Browse the repository at this point in the history
  • Loading branch information
Nostritius authored and DrMcCoy committed Feb 23, 2019
1 parent 5681dac commit 8370238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aurora/actionscript/asbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void ASBuffer::execute(AVM &avm) {

if (_script->pos() - startPos != static_cast<size_t>(length + _seeked))
throw Common::Exception("Invalid tag");
} while (opcode != 0 && _script->pos() != _script->size());
} while (opcode != 0 && _script->pos() != _script->size() && avm.getReturnValue().isUndefined());

debugC(kDebugActionScript, 1, "--- End Actionscript ---");
}
Expand Down

0 comments on commit 8370238

Please sign in to comment.