*/
if (iface->isReferenceInterface()) return false;
- if (iface->getConnectedFrom() != NULL) return false;
+ ConnectedInterface* connIface = AI_TO_CON(iface);
+ if (connIface->getConnectedFrom() != NULL) return false;
if (this->getOwner() == iface->getOwner()->getParent()) {
if ((direction == Input) && (iface->getDirection() == Input)) return true;