summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorSusu <bruant.bastien@gmail.com>2013-07-29 16:05:51 +0200
committerSusu <bruant.bastien@gmail.com>2013-07-29 16:05:51 +0200
commitb7171479a47490ff80bf04849f763158d6d96fac (patch)
tree54392801c4087f4cfe0b351596fc6f36546beb6b /src/map/chrif.c
parent853489bcb5f2acfce14731b117ddc2b246042883 (diff)
downloadhercules-b7171479a47490ff80bf04849f763158d6d96fac.tar.gz
hercules-b7171479a47490ff80bf04849f763158d6d96fac.tar.bz2
hercules-b7171479a47490ff80bf04849f763158d6d96fac.tar.xz
hercules-b7171479a47490ff80bf04849f763158d6d96fac.zip
Added mercenary interface
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index d1ee8b5b1..d44ccf721 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -312,8 +312,8 @@ int chrif_save(struct map_session_data *sd, int flag) {
intif->save_petdata(sd->status.account_id,&sd->pd->pet);
if( sd->hd && homun_alive(sd->hd) )
homun->save(sd->hd);
- if( sd->md && mercenary_get_lifetime(sd->md) > 0 )
- mercenary_save(sd->md);
+ if( sd->md && mercenary->get_lifetime(sd->md) > 0 )
+ mercenary->save(sd->md);
if( sd->ed && elemental->get_lifetime(sd->ed) > 0 )
elemental->save(sd->ed);
if( sd->save_quest )