diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-10-27 13:54:23 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-10-27 13:54:23 +0000 |
commit | 5612c2738964c0747ecf754b7cf5f834b3e09cef (patch) | |
tree | cc99b8951fbcce5503b1df3762fbf6ef17790c3f /src/map/chrif.c | |
parent | 8868ae19d71ef5b73fe54d08471da78e0b2e9b38 (diff) | |
download | hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.gz hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.bz2 hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.tar.xz hercules-5612c2738964c0747ecf754b7cf5f834b3e09cef.zip |
Fixed quest will never get erased when it's the only quest you have.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14105 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 0ab4aec51..9b0f7f875 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -282,14 +282,13 @@ int chrif_save(struct map_session_data *sd, int flag) memcpy(WFIFOP(char_fd,13), &sd->status, sizeof(sd->status)); WFIFOSET(char_fd, WFIFOW(char_fd,2)); - if( sd->status.pet_id > 0 && sd->pd ) 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 && mercenary_get_lifetime(sd->md) > 0 ) mercenary_save(sd->md); - if( sd->num_quests ) + if( sd->save_quest ) intif_quest_save(sd); return 0; |