mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-12 16:38:14 +00:00
Fixed AS2 - class detection of top level classes
This commit is contained in:
@@ -445,6 +445,10 @@ public class ActionScript2ClassDetector {
|
||||
if (memPath == null) {
|
||||
throw new AssertException("Invalid pathsource");
|
||||
}
|
||||
//remove _global if it's there - happens for classes in global package
|
||||
if (memPath.size() > 0 && "_global".equals(memPath.get(0))) {
|
||||
memPath.remove(0);
|
||||
}
|
||||
if (!classNamePath.equals(memPath)) {
|
||||
throw new AssertException("Invalid path of setmember:" + String.join(".", memPath));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user