Throw error if unknown SDK call type specified.

This commit is contained in:
Nick Hastings 2021-10-26 17:32:25 -04:00 committed by Your Name
parent bb6e6fd3b6
commit 52b8e95aae

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);
}
}
}