Fix default value always being when calling ParmValue(string,string).

This commit is contained in:
Nicholas Hastings 2017-04-22 21:28:44 -04:00 committed by GitHub
parent 8401ca3269
commit 6a77e04a8e

View File

@ -64,7 +64,7 @@ static cell_t sm_GetCommandLineParam(IPluginContext *pCtx, const cell_t *params)
char *param = NULL;
char *defValue = NULL;
pCtx->LocalToString(params[1], &param);
pCtx->LocalToString(params[4], &param);
pCtx->LocalToString(params[4], &defValue);
const char *value = pCmdLine->ParmValue(param, defValue);