Throw error if unknown SDK call type specified.

This commit is contained in:
Nick Hastings 2021-10-26 17:32:25 -04:00
parent 4b58b9f673
commit 38a069b97a

View File

@ -401,6 +401,11 @@ static cell_t SDKCall(IPluginContext *pContext, const cell_t *params)
startparam++;
}
break;
default:
{
vc->stk_put(ptr);
return pContext->ThrowNativeError("Unrecognized SDK Call type (%d)", vc->type);
}
}
}