diff options
-rw-r--r-- | CHANGELOG.md | 9 | ||||
-rw-r--r-- | src/map/unit.c | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a66decd1a..8e196fe2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,13 @@ and this project does not adhere to [Semantic Versioning](http://semver.org/spec If you are reading this in a text editor, simply ignore this section --> -## [v2020.03.08] `March 08 2020` `PATCH 1` +## [v2020.03.08+2] `March 08 2020` `PATCH 2` + +### Fixed + +- Fixed an incorrect return value in `unit->walktobl()` causing mobs to get stuck when they try to loot. (#2664) + +## [v2020.03.08+1] `March 08 2020` `PATCH 1` ### Fixed @@ -1257,6 +1263,7 @@ If you are reading this in a text editor, simply ignore this section - New versioning scheme and project changelogs/release notes (#1853) [Unreleased]: https://github.com/HerculesWS/Hercules/compare/stable...master +[v2020.03.08+2]: https://github.com/HerculesWS/Hercules/compare/v2020.03.08+1...v2020.03.08+2 [v2020.03.08+1]: https://github.com/HerculesWS/Hercules/compare/v2020.03.08...v2020.03.08+1 [v2020.03.08]: https://github.com/HerculesWS/Hercules/compare/v2020.02.09...v2020.03.08 [v2020.02.09]: https://github.com/HerculesWS/Hercules/compare/v2020.01.12...v2020.02.09 diff --git a/src/map/unit.c b/src/map/unit.c index dd644d8d1..a879a125f 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -728,10 +728,13 @@ static int unit_walktobl(struct block_list *bl, struct block_list *tbl, int rang if(!unit->can_move(bl)) return 0; - if (unit->walk_toxy_sub(bl) == 0 && (flag & 2) != 0) { - set_mobstate(bl); + if (unit->walk_toxy_sub(bl) == 0) { + if ((flag & 2) != 0) + set_mobstate(bl); + return 1; } + return 0; } |