for (Mounted m : en.getEquipment()) { if ((m.getType() instanceof AmmoType) && m.getType().hasFlag(AmmoType.F_HOTLOAD)) {
for (Mounted m : en.getAmmo()) { if (m.getType().hasFlag(AmmoType.F_HOTLOAD)) {
        public Mounted getSelectedEquipment() {            if (en instanceof Tank) {                if (en.hasTargComp()) {                    for (Mounted m : en.getEquipment()) {                        if (m.getType() instanceof MiscType &&                                m.getType().hasFlag(MiscType.F_TARGCOMP)) {                            return m;                        }                    }                }                if (clientgui.getClient().game.getOptions().booleanOption("maxtech_hotload")) {                    for (Mounted m : en.getEquipment()) {                        if ((m.getType() instanceof AmmoType)                                && m.getType().hasFlag(AmmoType.F_HOTLOAD)) {                            return m;                        }                    }                }            }            final CriticalSlot cs = getSelectedCritical();            if (null == cs) {                return null;            }            if (cs.getType() == CriticalSlot.TYPE_SYSTEM) {                return null;            }            return en.getEquipment(cs.getIndex());        }