fixed bug when having multiple smvControls

v1.6
unknown 4 months ago
parent 6f73c1bfd8
commit 37b9d88c7e

@ -776,7 +776,14 @@ namespace ModelGenerator.C_Structures
else
cText += " NULL,\n";
cText += " " + SMVControl.SclSMVControl.SclSmvOpts.GetIntValue() + ",\n";
if (SMVControl.SclSMVControl.SclSmvOpts != null)
{
cText += " " + SMVControl.SclSMVControl.SclSmvOpts.GetIntValue() + ",\n";
}
else
{
cText += " 0,\n";
}
if (SMVControl.SclSMVControl.SmpMod != null)
cText += " " + SMVControl.SclSMVControl.SmpMod + ",\n";

Loading…
Cancel
Save