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
parent fc8f43c3e5
commit 5b86ca68ee

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