Issue #643 - Only break lookup if 'code' AND 'version' found.

This commit is contained in:
Geoff McLane 2017-11-17 02:46:14 +01:00
parent eefd2edda7
commit 6a3e3fae77

View file

@ -2176,8 +2176,10 @@ ctmbstr TY_(EntityName)( uint ch, uint versions )
if ( ep->code == ch ) if ( ep->code == ch )
{ {
if (ep->versions & versions) if (ep->versions & versions)
{
entnam = ep->name; entnam = ep->name;
break; /* Found code. Stop search. */ break; /* Issue #643 - Found code and version. Stop search? */
}
} }
} }
return entnam; return entnam;