Skip to content
Permalink
Browse files

better map index

  • Loading branch information...
bobjacobsen committed Aug 18, 2019
1 parent b307478 commit 299da440aab3ecb0da3193c29582249923e58d00
Showing with 4 additions and 2 deletions.
  1. +4 −2 java/src/jmri/managers/DefaultSignalMastLogicManager.java
@@ -6,6 +6,7 @@
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;

import jmri.InstanceManager;
import jmri.JmriException;
@@ -300,13 +301,14 @@ public void discoverSignallingDest(SignalMast source, LayoutEditor layout) throw
throw e;
}

for (SignalMast key : validPaths.keySet()) {
for (Map.Entry<SignalMast, List<NamedBean>> entry : validPaths.entrySet()) {
SignalMast key = entry.getKey();
SignalMastLogic sml = getSignalMastLogic(key);
if (sml == null) {
sml = newSignalMastLogic(key);
}

List<NamedBean> validDestMast = validPaths.get(key);
List<NamedBean> validDestMast = entry.getValue();
for (NamedBean sm : validDestMast) {
if (!sml.isDestinationValid((SignalMast) sm)) {
try {

0 comments on commit 299da44

Please sign in to comment.
You can’t perform that action at this time.