Always set type, if possible
This commit is contained in:
parent
8dc8bb950b
commit
9f469e53e2
|
|
@ -36,7 +36,7 @@ CKTfndDev(void *Ckt, int *type, void **fast, IFuid name, void *modfast, IFuid mo
|
||||||
if (p->GENname == name) {
|
if (p->GENname == name) {
|
||||||
if (fast != 0)
|
if (fast != 0)
|
||||||
*(GENinstance **)fast = p;
|
*(GENinstance **)fast = p;
|
||||||
if(modfast) if (type)
|
if (type)
|
||||||
*type = p->GENmodPtr->GENmodType;
|
*type = p->GENmodPtr->GENmodType;
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue