summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 17:36:33 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 17:36:33 +0300
commitd5199cee806fb9f18987dea0c3a20a2d381927ca (patch)
tree135f15dadc1c7964b3078fd8223771f94d1ed0e6 /src/map/mercenary.c
parent756be9835054a3b2b8ebace388546fa15ffd4a92 (diff)
parente3eac134b1607cfe78331e298aaa20b260662571 (diff)
downloadhercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.tar.gz
hercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.tar.bz2
hercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.tar.xz
hercules-d5199cee806fb9f18987dea0c3a20a2d381927ca.zip
Merge pull request #1034 from HerculesWS/bl_cast
Changed all TBL_* to the appropriate structs
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index fb801a8da..e6c911ef6 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -317,10 +317,11 @@ int merc_data_received(struct s_mercenary *merc, bool flag) {
db = &mercenary->db[i];
if( !sd->md ) {
- sd->md = md = (struct mercenary_data*)aCalloc(1,sizeof(struct mercenary_data));
+ CREATE(md, struct mercenary_data, 1);
md->bl.type = BL_MER;
md->bl.id = npc->get_new_npc_id();
md->devotion_flag = 0;
+ sd->md = md;
md->master = sd;
md->db = db;