diff --git a/src/scripting/vm/vmexec.cpp b/src/scripting/vm/vmexec.cpp index 1ad4e32563..f8fb4bfd26 100644 --- a/src/scripting/vm/vmexec.cpp +++ b/src/scripting/vm/vmexec.cpp @@ -201,7 +201,7 @@ void VMFillParams(VMValue *params, VMFrame *callee, int numparam) VMScriptFunction *calleefunc = static_cast(callee->Func); const VMRegisters calleereg(callee); - assert(calleefunc != NULL && !calleefunc->Native); + assert(calleefunc != NULL && !(calleefunc->VarFlags & VARF_Native)); assert(numparam == calleefunc->NumArgs || ((int)calleefunc->DefaultArgs.Size() == calleefunc->NumArgs)); assert(REGT_INT == 0 && REGT_FLOAT == 1 && REGT_STRING == 2 && REGT_POINTER == 3);