inpcom.c, use model_name_match() for comparing model names

This commit is contained in:
h_vogt 2016-05-01 22:49:07 +02:00 committed by rlar
parent 1638c34680
commit 24f8558be3
1 changed files with 1 additions and 1 deletions

View File

@ -6923,7 +6923,7 @@ inp_rem_unused_models(struct line *deck)
if (num_terminals != 0) {
char *elem_model_name = get_model_name(elem_line, num_terminals);
if (is_a_modelname(elem_model_name))
if (cieq(elem_model_name, model_name))
if (model_name_match(elem_model_name, model_name))
/* check if element is within scope of model */
if (inp_check_scope_mod(card_elem->level, card->level))
model_is_in_use = TRUE;