diff options
author | skyleo <skyleo@skyleo.de> | 2019-12-02 19:03:05 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-03-08 20:59:35 +0100 |
commit | d21fd8e6727f1fba7cb57994aa9c74d4dd0cf05b (patch) | |
tree | 166dee43ef13596e16a7f136563e27232e854302 /src/map/unit.c | |
parent | 2a6299822436e560319fd288dc44d8997943e731 (diff) | |
download | hercules-d21fd8e6727f1fba7cb57994aa9c74d4dd0cf05b.tar.gz hercules-d21fd8e6727f1fba7cb57994aa9c74d4dd0cf05b.tar.bz2 hercules-d21fd8e6727f1fba7cb57994aa9c74d4dd0cf05b.tar.xz hercules-d21fd8e6727f1fba7cb57994aa9c74d4dd0cf05b.zip |
Change bl parameter to be const in unit->getdir
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 28f81017f..4a0d98cc4 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -937,13 +937,13 @@ static int unit_set_dir(struct block_list *bl, enum unit_dir dir) * @param bl: unit to request data from * @return the facing direction @see enum unit_dir */ -static enum unit_dir unit_getdir(struct block_list *bl) +static enum unit_dir unit_getdir(const struct block_list *bl) { nullpo_retr(UNIT_DIR_NORTH, bl); if (bl->type == BL_NPC) return BL_UCCAST(BL_NPC, bl)->dir; - struct unit_data *ud = unit->bl2ud(bl); + const struct unit_data *ud = unit->cbl2ud(bl); if (ud == NULL) return UNIT_DIR_NORTH; return ud->dir; |