- Correzioni varie per compatibilità con lettura file JSON di configurazione

- In GetBestStrategy si fa copia della tabella che prima era passata come riferimento
This commit is contained in:
andrea.villa
2025-05-23 14:55:26 +02:00
parent 97dfd6f2e1
commit a772113107
4 changed files with 30 additions and 15 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ function BeamLib.LoadCustomParametersInStrategy( Proc, CustomParameters, Default
end
if DefaultStrategyParamList.ParameterList[i].sType == 'b' then
UpdatedParameters[DefaultStrategyParamList.ParameterList[i].sName] = xParameterValue == 'true'
UpdatedParameters[DefaultStrategyParamList.ParameterList[i].sName] = xParameterValue == 'true' or xParameterValue == '1'
elseif DefaultStrategyParamList.ParameterList[i].sType == 'd' then
if #DefaultStrategyParamList.ParameterList[i].sValue > 0 then
UpdatedParameters[DefaultStrategyParamList.ParameterList[i].sName] = tonumber( xParameterValue)