Merge pull request #7801 from hpvb/fix-7796

Remove bounds check when resuming from yield. (fixes #7796)
This commit is contained in:
Rémi Verschelde 2017-02-14 07:46:45 +01:00 committed by GitHub
commit fdbe1c3c61

View file

@ -171,7 +171,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
if (p_state) {
//use existing (supplied) state (yielded)
stack=(Variant*)p_state->stack.ptr();
call_args=(Variant**)&p_state->stack[sizeof(Variant)*p_state->stack_size];
call_args=(Variant**)stack + sizeof(Variant)*p_state->stack_size;
line=p_state->line;
ip=p_state->ip;
alloca_size=p_state->stack.size();