From 5612c2738964c0747ecf754b7cf5f834b3e09cef Mon Sep 17 00:00:00 2001 From: Inkfish Date: Tue, 27 Oct 2009 13:54:23 +0000 Subject: 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 --- src/map/chrif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/chrif.c') 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; -- cgit v1.2.3-60-g2f50