summaryrefslogtreecommitdiff
path: root/src/char_sql/int_quest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/int_quest.c')
-rw-r--r--src/char_sql/int_quest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/char_sql/int_quest.c b/src/char_sql/int_quest.c
index 3c3e5446d..86ebccdae 100644
--- a/src/char_sql/int_quest.c
+++ b/src/char_sql/int_quest.c
@@ -33,6 +33,9 @@ int mapif_quests_fromsql(int char_id, struct quest questlog[])
return 0;
}
+ memset(&tmp_quest, 0, sizeof(struct quest));
+ memset(&tmp_quest_objective, 0, sizeof(struct quest_objective));
+
if( SQL_ERROR == SqlStmt_Prepare(stmt, "SELECT `quest_id`, `state` FROM `%s` WHERE `char_id`=? LIMIT %d", quest_db, MAX_QUEST)
|| SQL_ERROR == SqlStmt_BindParam(stmt, 0, SQLDT_INT, &char_id, 0)
|| SQL_ERROR == SqlStmt_Execute(stmt)