summaryrefslogtreecommitdiff
path: root/src/map/unit.h
diff options
context:
space:
mode:
authorskyleo <skyleo@skyleo.de>2019-12-02 19:58:08 +0100
committerHaru <haru@dotalux.com>2020-03-08 20:59:35 +0100
commit1d17449c0cb809cec8ca16f2ac860f6377bfa305 (patch)
tree590cc4b95caf3f63770a993d7e29383621cc6905 /src/map/unit.h
parentddd62450518afd71bd72f914196b6a2eac7e6bd3 (diff)
downloadhercules-1d17449c0cb809cec8ca16f2ac860f6377bfa305.tar.gz
hercules-1d17449c0cb809cec8ca16f2ac860f6377bfa305.tar.bz2
hercules-1d17449c0cb809cec8ca16f2ac860f6377bfa305.tar.xz
hercules-1d17449c0cb809cec8ca16f2ac860f6377bfa305.zip
Add unit->cbl2ud for when using const block_list
Diffstat (limited to 'src/map/unit.h')
-rw-r--r--src/map/unit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.h b/src/map/unit.h
index 57f04b57a..7bf94d3e1 100644
--- a/src/map/unit.h
+++ b/src/map/unit.h
@@ -103,6 +103,7 @@ struct unit_interface {
int (*final) (void);
/* */
struct unit_data* (*bl2ud) (struct block_list *bl);
+ const struct unit_data* (*cbl2ud) (const struct block_list *bl);
struct unit_data* (*bl2ud2) (struct block_list *bl);
void (*init_ud) (struct unit_data *ud);
int (*attack_timer) (int tid, int64 tick, int id, intptr_t data);