Merge pull request #18 from Jackkal/fix_classcastexception

Fix decompilation error: ClassCastException in AND/OR detection.
This commit is contained in:
honfika
2015-03-19 21:30:03 +01:00

View File

@@ -1471,7 +1471,7 @@ public class Graph {
a.firstPart = ((AndItem) second).firstPart;
}
if (second instanceof OrItem) {
a.firstPart = ((AndItem) second).firstPart;
a.firstPart = ((OrItem) second).firstPart;
}
} else {
OrItem o = new OrItem(null, first, second);
@@ -1480,8 +1480,8 @@ public class Graph {
if (second instanceof OrItem) {
o.firstPart = ((OrItem) second).firstPart;
}
if (second instanceof OrItem) {
o.firstPart = ((OrItem) second).firstPart;
if (second instanceof AndItem) {
o.firstPart = ((AndItem) second).firstPart;
}
}