From 2f79a6401dde1e4f9c1788ff5388160b64731c58 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Wed, 5 May 2021 00:53:58 +0000 Subject: [PATCH] Fix massive bug which dropped function calls without returns from the finished output. --- bemani/format/afp/decompile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bemani/format/afp/decompile.py b/bemani/format/afp/decompile.py index 0f1f035..7f594e2 100644 --- a/bemani/format/afp/decompile.py +++ b/bemani/format/afp/decompile.py @@ -2548,7 +2548,7 @@ class ByteCodeDecompiler(VerboseOutput): # This is a discard. Let's see if its discarding a function or method # call. If so, that means the return doesn't matter. discard = stack.pop() - if isinstance(discard, MethodCall): + if isinstance(discard, (FunctionCall, MethodCall)): # It is! Let's act on the statement. chunk.actions[i] = ExpressionStatement(discard) else: