Skip to content

Commit

Permalink
fix: resolve issue with dvarFloatList and dvarStrList on menu export
Browse files Browse the repository at this point in the history
  • Loading branch information
Lierrmm committed Apr 26, 2023
1 parent a4bdf27 commit 097e24b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/modules/menu_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,13 @@ namespace components

for (int i = 0; i < itemDef.typeData.multi->count; i++)
{
if (itemDef.typeData.multi->strDef == 1)
if (itemDef.typeData.multi->strDef == 1)
{
menu_file_ << itemDef.typeData.multi->dvarList[i] << " " << itemDef.typeData.multi->dvarStr[i] << " ";
menu_file_ << '"' << itemDef.typeData.multi->dvarList[i] << '"' << ", " << '"' << itemDef.typeData.multi->dvarStr[i] << '"' << "; ";
}
else
else
{
menu_file_ << itemDef.typeData.multi->dvarList[i] << " " << itemDef.typeData.multi->dvarValue[i] << " ";
menu_file_ << '"' << itemDef.typeData.multi->dvarList[i] << '"' << " " << itemDef.typeData.multi->dvarValue[i] << " ";
}
}

Expand Down

0 comments on commit 097e24b

Please sign in to comment.