if (mechs[x].getWeightClass() == nWeight && mechs[x].getType() == nType) {
if ( mechs[x].getWeightClass() == nWeight && mechs[x].getType() == nType && ( sUnitType.equals( "All" ) || mechs[x].getUnitType().equals(sUnitType) ) ) {
    private void filterMechs()    {        Vector vMechs = new Vector();        String sClass = m_chWeightClass.getSelectedItem();        int nWeight;        if (sClass.equals("Light")) {            nWeight = Entity.WEIGHT_LIGHT;        }        else if (sClass.equals("Medium")) {            nWeight = Entity.WEIGHT_MEDIUM;        }        else if (sClass.equals("Heavy")) {            nWeight = Entity.WEIGHT_HEAVY;        }        else {            nWeight = Entity.WEIGHT_ASSAULT;        }        int nType = m_chType.getSelectedIndex();        MechSummary[] mechs = MechSummaryCache.getInstance().getAllMechs();        for (int x = 0; x < mechs.length; x++) {            if (mechs[x].getWeightClass() == nWeight &&                     mechs[x].getType() == nType) {                vMechs.addElement(mechs[x]);            }        }        m_mechsCurrent = new MechSummary[vMechs.size()];        vMechs.copyInto(m_mechsCurrent);        sortMechs();    }