Throw error if unknown SDK call type specified.
This commit is contained in:
parent
bb6e6fd3b6
commit
52b8e95aae
@ -401,6 +401,11 @@ static cell_t SDKCall(IPluginContext *pContext, const cell_t *params)
|
|||||||
startparam++;
|
startparam++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
vc->stk_put(ptr);
|
||||||
|
return pContext->ThrowNativeError("Unrecognized SDK Call type (%d)", vc->type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user