Skip to content

Commit

Permalink
Merge pull request #2659 from skyleo/unit_aggro_fix
Browse files Browse the repository at this point in the history
Fix wrong return-value on success by unit->walktobl
  • Loading branch information
hemagx authored Mar 14, 2020
2 parents 2764e41 + ab5c275 commit eddaa7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit eddaa7d

Please sign in to comment.