diff options
author | Haru <haru@dotalux.com> | 2015-12-28 15:41:36 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-06 15:18:39 +0100 |
commit | e3eac134b1607cfe78331e298aaa20b260662571 (patch) | |
tree | 135f15dadc1c7964b3078fd8223771f94d1ed0e6 /src/map/homunculus.c | |
parent | 0e05c1ed742707e0eb5923b562b2f6b8c6c5a3be (diff) | |
download | hercules-e3eac134b1607cfe78331e298aaa20b260662571.tar.gz hercules-e3eac134b1607cfe78331e298aaa20b260662571.tar.bz2 hercules-e3eac134b1607cfe78331e298aaa20b260662571.tar.xz hercules-e3eac134b1607cfe78331e298aaa20b260662571.zip |
Replaced the remaining explicit casts with BL_CAST/BL_UCAST
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r-- | src/map/homunculus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c index 8ba8ba93b..b642c197f 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -786,9 +786,10 @@ bool homunculus_create(struct map_session_data *sd, struct s_homunculus *hom) { intif->homunculus_requestdelete(hom->hom_id); return false; } - sd->hd = hd = (struct homun_data*)aCalloc(1,sizeof(struct homun_data)); + CREATE(hd, struct homun_data, 1); hd->bl.type = BL_HOM; hd->bl.id = npc->get_new_npc_id(); + sd->hd = hd; hd->master = sd; hd->homunculusDB = &homun->dbs->db[i]; |