diff options
Diffstat (limited to 'src/map/unit.c')
-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 eb8eac589..111f49065 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1687,7 +1687,7 @@ int unit_calc_pos(struct block_list *bl, int tx, int ty, uint8 dir) struct unit_data *ud = unit_bl2ud(bl); nullpo_ret(ud); - if( dir < 0 || dir > 7 ) + if(dir > 7) return 1; ud->to_x = tx; |