- fix debug build compile error

This commit is contained in:
Magnus Norddahl 2018-10-11 03:14:42 +02:00
parent 0120ea190c
commit aa6e09f7e8

View file

@ -230,8 +230,6 @@ int VMNativeFunction::NativeScriptCall(VMFunction *func, VMValue *params, int nu
{ {
try try
{ {
assert((call->VarFlags & VARF_Native) && "DoNativeCall must only be called for native functions");
VMCycles[0].Unclock(); VMCycles[0].Unclock();
numret = static_cast<VMNativeFunction *>(func)->NativeCall(params, func->DefaultArgs, numparams, returns, numret); numret = static_cast<VMNativeFunction *>(func)->NativeCall(params, func->DefaultArgs, numparams, returns, numret);
VMCycles[0].Clock(); VMCycles[0].Clock();