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 the bug where both moving from and to coordinates are the same when moving between differnt cells. #3852

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

hexhexD
Copy link
Member

@hexhexD hexhexD commented Feb 12, 2024

The bug:
image

I tested locally that the refs are now different and everything works great.

…en moving between differnt cells.

$char->{pos} and $char->{pos_to} are both a reference to a hash of
coordinates. They were incorrectly assigned to the same reference inside
skill_used_no_damage() which made them pointing to the same hash. There will
be no more strange routing after this fix.

This has been bothering me for a long time now. I'm happy I finally got
to the bootm of it.
@alisonrag alisonrag merged commit 1edc50f into OpenKore:master Feb 12, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants