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

Fix incorrect argument to Player:onItemMoved event #3913

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

Erza
Copy link
Contributor

@Erza Erza commented Jan 27, 2022

Pull Request Prelude

Changes Proposed

When an exchange happens (e.g. dragging item A into a non-empty hand slot where item B is), the count argument was being passed the count of item A in both calls to g_events->eventPlayerOnItemMoved.

In the video scenario, it would be 81 in both cases, but it should be 81 and 99 respectively.

19027O925g.mp4

Issues addressed:

@EPuncker EPuncker requested a review from a team January 27, 2022 08:21
@EPuncker EPuncker merged commit 0a28db6 into otland:master Jan 27, 2022
@Erza Erza deleted the fix-event-arg branch January 27, 2022 18:08
Znote pushed a commit to Znote/forgottenserver that referenced this pull request Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants