From 08c870656aeb76d839a8ad2fd071818b8618f899 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Sun, 31 Aug 2008 22:56:05 +0000 Subject: - A proper mercenary lifetime calculation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13165 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/chrif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/chrif.c') diff --git a/src/map/chrif.c b/src/map/chrif.c index 2fc1b9dbe..7ff0c12e6 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -286,7 +286,7 @@ int chrif_save(struct map_session_data *sd, int flag) intif_save_petdata(sd->status.account_id,&sd->pd->pet); if( sd->hd && merc_is_hom_active(sd->hd) ) merc_save(sd->hd); - if( sd->md && sd->md->mercenary.remain_life_time > 0 ) + if( sd->md && mercenary_get_lifetime(sd->md) > 0 ) mercenary_save(sd->md); return 0; -- cgit v1.2.3-70-g09d2