Throw error if unknown SDK call type specified.

This commit is contained in:
Nick Hastings
2023-08-30 22:08:45 +02:00
committed by Your Name
parent bb6e6fd3b6
commit 52b8e95aae
+5
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);
}
}
}