Skip to content

Commit

Permalink
Merge pull request #60 from Cattlesquat/Bugfix13146
Browse files Browse the repository at this point in the history
Bug 13146 - Fix class search to account for custom classes.
  • Loading branch information
uckelman committed Jul 5, 2020
2 parents 06fd39f + 372a569 commit b1d41fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/VASSAL/configure/PropertiesWindow.java
Expand Up @@ -37,6 +37,7 @@
import VASSAL.build.Buildable;
import VASSAL.build.Builder;
import VASSAL.build.Configurable;
import VASSAL.build.GameModule;
import VASSAL.build.module.documentation.HelpWindow;
import VASSAL.tools.ErrorDialog;

Expand Down Expand Up @@ -64,7 +65,7 @@ protected void initialize(final Configurable target, HelpWindow helpWindow) {
if (Node.ELEMENT_NODE == child.getNodeType()) {
// Cull Buildables from the state.
try {
final Class<?> c = Class.forName(((Element)child).getTagName());
final Class<?> c = GameModule.getGameModule().getDataArchive().loadClass(((Element)child).getTagName());
if (Buildable.class.isAssignableFrom(c)) {
originalState.removeChild(child);
}
Expand Down

0 comments on commit b1d41fb

Please sign in to comment.