Fix for "show" command, when run before any analysis.

This commit is contained in:
pnenzi 2004-08-13 10:47:29 +00:00
parent fc1ac2dfa4
commit 0abca45825
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ RESparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
break;
case RES_RESIST:
here->RESresist = value->rValue;
if (!here->RESmGiven)
here->RESm = 1.0;
if (!here->RESacresGiven)
here->RESacResist = value->rValue;
here->RESresGiven = TRUE;
break;
case RES_ACRESIST: