diff options
author | Ibrahem Zidan <brahem@aotsw.com> | 2020-03-14 18:29:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-14 18:29:34 +0200 |
commit | eddaa7dc006d9b789155910878262e3c8371ddd8 (patch) | |
tree | 9475b9b47e900f5d04c1d418ecb818915ecb54e9 /src/map | |
parent | 2764e41addcb28863a6d9de5b0407eba9855fa77 (diff) | |
parent | ab5c275e3915def5ce4f1cdd0928a4115db50cb6 (diff) | |
download | hercules-eddaa7dc006d9b789155910878262e3c8371ddd8.tar.gz hercules-eddaa7dc006d9b789155910878262e3c8371ddd8.tar.bz2 hercules-eddaa7dc006d9b789155910878262e3c8371ddd8.tar.xz hercules-eddaa7dc006d9b789155910878262e3c8371ddd8.zip |
Merge pull request #2659 from skyleo/unit_aggro_fix
Fix wrong return-value on success by unit->walktobl
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index d2cfcb03d..dd644d8d1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -730,7 +730,7 @@ static int unit_walktobl(struct block_list *bl, struct block_list *tbl, int rang if (unit->walk_toxy_sub(bl) == 0 && (flag & 2) != 0) { set_mobstate(bl); - return 0; + return 1; } return 0; } |