From bf34e9a19ec0afc5d4a9494e20015a65ba5a76c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Sep 2016 20:05:57 +0300 Subject: Save also quest time while updating quest in db. --- src/char/int_quest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/char/int_quest.c b/src/char/int_quest.c index cf93db51e..7b3d746dd 100644 --- a/src/char/int_quest.c +++ b/src/char/int_quest.c @@ -182,7 +182,7 @@ bool mapif_quest_update(int char_id, struct quest qd) int i; StrBuf->Init(&buf); - StrBuf->Printf(&buf, "UPDATE `%s` SET `state`='%u'", quest_db, qd.state); + StrBuf->Printf(&buf, "UPDATE `%s` SET `state`='%u', `time`='%u'", quest_db, qd.state, qd.time); for (i = 0; i < MAX_QUEST_OBJECTIVES; i++) { StrBuf->Printf(&buf, ", `count%d`='%d'", i+1, qd.count[i]); } -- cgit v1.2.3-70-g09d2