summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-09-04 11:50:21 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-09-04 11:50:21 +0000
commit9ebb20f8aed2448adc755c4f8a4977cfff49a39d (patch)
tree443647f514e55b3d7d79c32950d16e47284d550a /src/map/quest.c
parent616a2c8c15e2ab4e05481335f3d8798c0997da00 (diff)
downloadhercules-9ebb20f8aed2448adc755c4f8a4977cfff49a39d.tar.gz
hercules-9ebb20f8aed2448adc755c4f8a4977cfff49a39d.tar.bz2
hercules-9ebb20f8aed2448adc755c4f8a4977cfff49a39d.tar.xz
hercules-9ebb20f8aed2448adc755c4f8a4977cfff49a39d.zip
Added missing memmove() when adding quests. Sorry, can't be more careless...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14039 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index c110427a0..61d6fda36 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -81,6 +81,7 @@ int quest_add(TBL_PC * sd, int quest_id)
i = sd->avail_quests;
memmove(&sd->quest_log[i+1], &sd->quest_log[i], sizeof(struct quest)*(sd->num_quests-sd->avail_quests));
+ memmove(sd->quest_index+i+1, sd->quest_log+i, sizeof(int)*(sd->num_quests-sd->avail_quests));
memset(&sd->quest_log[i], 0, sizeof(struct quest));
sd->quest_log[i].quest_id = quest_db[j].id;