Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the bug where both moving from and to coordinates are the same wh…
…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_sued_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.
- Loading branch information