diff --git a/src/scripting/vm/vmexec.h b/src/scripting/vm/vmexec.h index 5949423510..ce3e3be228 100644 --- a/src/scripting/vm/vmexec.h +++ b/src/scripting/vm/vmexec.h @@ -649,9 +649,9 @@ begin: } NEXTOP; OP(SCOPE) : - { - ASSERTA(a); ASSERTA(C); - FScopeBarrier::ValidateCall(((DObject*)a)->GetClass(), (VMFunction*)C, B - 1); + { + ASSERTA(a); ASSERTA(C); + FScopeBarrier::ValidateCall(((DObject*)konsta[a].v)->GetClass(), (VMFunction*)konsta[C].v, B - 1); } NEXTOP;