diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-31 22:56:05 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-31 22:56:05 +0000 |
commit | 08c870656aeb76d839a8ad2fd071818b8618f899 (patch) | |
tree | 3ac8cc1544cd0a60f00312cdb6c8c21f62f287a8 /src/map/chrif.c | |
parent | 409cb0381295716d654fd2ee5021e1011a45ab80 (diff) | |
download | hercules-08c870656aeb76d839a8ad2fd071818b8618f899.tar.gz hercules-08c870656aeb76d839a8ad2fd071818b8618f899.tar.bz2 hercules-08c870656aeb76d839a8ad2fd071818b8618f899.tar.xz hercules-08c870656aeb76d839a8ad2fd071818b8618f899.zip |
- A proper mercenary lifetime calculation.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13165 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |