diff --git a/src/spicelib/parser/inp2d.c b/src/spicelib/parser/inp2d.c index 41e02237f..ce8274c7a 100644 --- a/src/spicelib/parser/inp2d.c +++ b/src/spicelib/parser/inp2d.c @@ -61,7 +61,7 @@ void INP2D(void *ckt, INPtables * tab, card * current) LITERR("incorrect model type"); return; } - type = mytype; + type = thismodel->INPmodType; /*HT 050903*/ mdfast = (thismodel->INPmodfast); } else { type = mytype;