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

[Clr2Papyrus] Possibly wrong invoke method used for delegates #6

Open
zerratar opened this issue Dec 26, 2015 · 0 comments
Open

[Clr2Papyrus] Possibly wrong invoke method used for delegates #6

zerratar opened this issue Dec 26, 2015 · 0 comments
Labels

Comments

@zerratar
Copy link
Owner

Whenever a nested delegate is used, it is required to find the method reference by going to the previous ldsfldn (load method ref pointer)

If you have a non-nested delegate right after this one may take the nested ones invoke instead of its own.

Solution: Never use the same reference more than once. If no ldsfldn is found then the appointed method name should be used instead.

Note: Having more than one delegate nested in each other has not been tested:
Ex:

DelegateA a => {
DelegateB b => {
. DelegateC c => {};
. c();
. }
. b();
};
A();

@zerratar zerratar added the bug label Dec 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant