Always set type, if possible

This commit is contained in:
stefanjones 2004-08-11 15:46:09 +00:00
parent 8dc8bb950b
commit 9f469e53e2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ CKTfndDev(void *Ckt, int *type, void **fast, IFuid name, void *modfast, IFuid mo
if (p->GENname == name) {
if (fast != 0)
*(GENinstance **)fast = p;
if(modfast) if (type)
if (type)
*type = p->GENmodPtr->GENmodType;
return OK;
}