From d21fd8e6727f1fba7cb57994aa9c74d4dd0cf05b Mon Sep 17 00:00:00 2001 From: skyleo Date: Mon, 2 Dec 2019 19:03:05 +0100 Subject: Change bl parameter to be const in unit->getdir --- src/map/unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/unit.h') diff --git a/src/map/unit.h b/src/map/unit.h index 7bf94d3e1..3f288e0d3 100644 --- a/src/map/unit.h +++ b/src/map/unit.h @@ -118,7 +118,7 @@ struct unit_interface { int (*escape) (struct block_list *bl, struct block_list *target, short dist); int (*movepos) (struct block_list *bl, short dst_x, short dst_y, int easy, bool checkpath); int (*set_dir) (struct block_list *bl, enum unit_dir dir); - enum unit_dir (*getdir) (struct block_list *bl); + enum unit_dir (*getdir) (const struct block_list *bl); int (*blown) (struct block_list *bl, int dx, int dy, int count, int flag); int (*warp) (struct block_list *bl, short m, short x, short y, enum clr_type type); int (*warpto_master) (struct block_list *master_bl, struct block_list *slave_bl); -- cgit v1.2.3-70-g09d2