weaponMods.add(correct);
weaponMods.addElement(correct);
    public void setModifier(Mounted mounted, int modifier,Coords coords) {        Vector weaponMods=(Vector)artyWeaps.get(mounted);        ArtilleryModifier correct=null;        if(weaponMods!=null) {            for(Enumeration i=weaponMods.elements();i.hasMoreElements();) {                ArtilleryModifier mod=(ArtilleryModifier)i.nextElement();                if(mod.coords.equals(coords))                {                    correct=mod;                }            }            if(correct!=null) {                correct.modifier=modifier;            } else {                correct=new ArtilleryModifier(coords,modifier);                weaponMods.add(correct);            }        } else {            weaponMods = new Vector();            weaponMods.add(new ArtilleryModifier(coords,modifier));            artyWeaps.put(mounted,weaponMods);        }    }