summaryrefslogtreecommitdiff
path: root/src/char_sql/int_quest.c
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-14 02:45:11 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-14 02:45:11 +0000
commitb9e69523ae1c8894fe5e70cfcaa72a5851f5f27c (patch)
tree998df86a089d58108367a7df1fcbb263b072a1cf /src/char_sql/int_quest.c
parent02a755111f9a707cc7fdef81772c74b1d10242b1 (diff)
downloadhercules-b9e69523ae1c8894fe5e70cfcaa72a5851f5f27c.tar.gz
hercules-b9e69523ae1c8894fe5e70cfcaa72a5851f5f27c.tar.bz2
hercules-b9e69523ae1c8894fe5e70cfcaa72a5851f5f27c.tar.xz
hercules-b9e69523ae1c8894fe5e70cfcaa72a5851f5f27c.zip
Removed some unused variables that appeared in the last commit (r12584).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12585 54d463be-8e91-2dee-dedb-b68131a5f0ec
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)