diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/quest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index 4960d8a93..4c890ce9e 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -85,7 +85,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)); + memmove(sd->quest_index+i+1, sd->quest_index+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; |