Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument is assigned a wrong index if an Object Argument is reused #117

Open
Jaime1129 opened this issue Aug 29, 2024 · 1 comment
Open

Comments

@Jaime1129
Copy link

If an object argument with particular ObjectBuilderArg has been added into inputs before, putting another object argument with same ObjectBuilderArg won't modify the length of inputs.

this.inputs.put(search, objectBuilder.build());

In this case, this new object argument's index value is not necessarily equal to this.inputs.size() - 1. Instead, it should equal the old object's index.

argBuilder.value = (short) (this.inputs.size() - 1);

@GrapeBaBa
Copy link
Owner

Sorry for that, have you already fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants