Fixed checkquest script for checking HUNTING time if time limit is reached or not

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17395 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
cydh 2013-06-30 13:34:17 +00:00
parent 75af12fb1f
commit 2b7524d288

View File

@ -273,7 +273,7 @@ int quest_check(TBL_PC * sd, int quest_id, quest_check_type type) {
ARR_FIND(0, MAX_QUEST_OBJECTIVES, j, sd->quest_log[i].count[j] < quest_db[sd->quest_index[i]].count[j]);
if( j == MAX_QUEST_OBJECTIVES )
return 2;
if( sd->quest_log[i].time < (unsigned int)time(NULL) )
if( sd->quest_log[i].time > 0 && sd->quest_log[i].time < (unsigned int)time(NULL) )
return 1;
return 0;
} else