Fix default value always being when calling ParmValue(string,string).
This commit is contained in:
		
							parent
							
								
									8401ca3269
								
							
						
					
					
						commit
						6a77e04a8e
					
				@ -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