mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
fix: remove count
instead of count + 1
instructions with removeInstructions
(#167)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de> BREAKING-CHANGE: This alters the behaviour of the function. Instead of removing `count + 1` instructions, this now removes `count` instructions.
This commit is contained in:
parent
4ed429d25c
commit
98f8eedecd
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ fun MutableMethodImplementation.replaceInstructions(index: Int, instructions: Li
|
|||
}
|
||||
|
||||
fun MutableMethodImplementation.removeInstructions(index: Int, count: Int) {
|
||||
for (i in count downTo 0) {
|
||||
for (i in count - 1 downTo 0) {
|
||||
this.removeInstruction(index + i)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue