summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-08-11 18:26:00 -0700
committermalufett <malufett.eat.my.binaries@gmail.com>2013-08-11 18:26:00 -0700
commit3fb307be68de6026df138b2d48f2f6b94dbec64f (patch)
tree8f15d2e7be17ddcbea36b623167d16c545de9ff5
parentd8b2eb622f14e10e4da0e521deb5dee6e849affa (diff)
downloadhercules-3fb307be68de6026df138b2d48f2f6b94dbec64f.tar.gz
hercules-3fb307be68de6026df138b2d48f2f6b94dbec64f.tar.bz2
hercules-3fb307be68de6026df138b2d48f2f6b94dbec64f.tar.xz
hercules-3fb307be68de6026df138b2d48f2f6b94dbec64f.zip
Follow up @ d8b2eb622f14e10e4da0e521deb5dee6e849affa
-Quest log counter should now work properly upon login.
-rw-r--r--src/map/quest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index 78902fedf..cf78430a4 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -49,11 +49,16 @@ int quest_search_db(int quest_id)
//Send quest info on login
int quest_pc_login(TBL_PC * sd)
{
+ int i;
+
if(sd->avail_quests == 0)
return 1;
clif->quest_send_list(sd);
clif->quest_send_mission(sd);
+ for( i = 0; i < sd->avail_quests; i++ ) {
+ clif->quest_update_objective(sd, &sd->quest_log[i], sd->quest_index[i]);
+ }
return 0;
}