mirror of
https://github.com/revanced/smali.git
synced 2025-05-02 23:54:38 +02:00
Fix the calculation of the "this" register in MethodAnalyzer
This commit is contained in:
parent
8d74f47b45
commit
e3478f4fd4
@ -142,7 +142,7 @@ public class MethodAnalyzer {
|
||||
//current class
|
||||
if (!MethodUtil.isStatic(method)) {
|
||||
nonParameterRegisters--;
|
||||
int thisRegister = totalRegisters - parameterRegisters - 1;
|
||||
int thisRegister = totalRegisters - parameterRegisters;
|
||||
|
||||
//if this is a constructor, then set the "this" register to an uninitialized reference of the current class
|
||||
if (MethodUtil.isConstructor(method)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user