Sim: Don't write inherited model params to symbol fields

This commit is contained in:
Mikolaj Wielgus 2022-11-12 23:50:11 +01:00
parent d66d810edc
commit ce3362ee12
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ std::string SIM_SERDE::GenerateValue() const
for( int i = 0; i < m_model.GetParamCount(); ++i ) for( int i = 0; i < m_model.GetParamCount(); ++i )
{ {
const SIM_MODEL::PARAM& param = m_model.GetParam( i ); const SIM_MODEL::PARAM& param = m_model.GetUnderlyingParam( i );
if( i == 0 && m_model.HasPrimaryValue() ) if( i == 0 && m_model.HasPrimaryValue() )
{ {
@ -103,7 +103,7 @@ std::string SIM_SERDE::GenerateParams() const
for( int i = 0; i < m_model.GetParamCount(); ++i ) for( int i = 0; i < m_model.GetParamCount(); ++i )
{ {
const SIM_MODEL::PARAM& param = m_model.GetParam( i ); const SIM_MODEL::PARAM& param = m_model.GetUnderlyingParam( i );
if( param.value->ToString() == "" ) if( param.value->ToString() == "" )
continue; continue;