From 1cb89c6b378a015b3a16d20e6eed9ff9353a5d14 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 8 Mar 2017 13:30:41 +0100 Subject: [PATCH] - fixed bad call to validate function. --- src/scripting/vm/vmexec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;