mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 10:28:34 +00:00
Fix default value always being when calling ParmValue(string,string).
This commit is contained in:
parent
fc8f43c3e5
commit
5b86ca68ee
@ -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], ¶m);
|
||||
pCtx->LocalToString(params[4], ¶m);
|
||||
pCtx->LocalToString(params[4], &defValue);
|
||||
|
||||
const char *value = pCmdLine->ParmValue(param, defValue);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user