mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 03:22:17 +00:00
Fix off-by-n error in Locals
This commit is contained in:
1 parent
650a753af7
commit
6322cffe8b
1 file changed
-1
@@ -71,7 +71,6 @@ public class Locals {
|
||||
* @param pos Start position
|
||||
*/
|
||||
public static void loadLocals(Type[] locals, InsnList insns, int pos, int limit) {
|
||||
limit += pos;
|
||||
for (; pos < locals.length && limit > 0; pos++) {
|
||||
if (locals[pos] != null) {
|
||||
insns.add(new VarInsnNode(locals[pos].getOpcode(Opcodes.ILOAD), pos));
|
||||
|
||||
Reference in new issue
Block a user