summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-21 09:08:15 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-21 09:08:15 +0000
commit8dfa0aff485cd6fe449ce9bb0a4dc311ce957382 (patch)
tree5c6b7225e94c5dee606a5b4ca3388eb9a61cd3f4 /src
parent19c262df112417ac6ea094feab443a31e9a352ae (diff)
downloadhercules-8dfa0aff485cd6fe449ce9bb0a4dc311ce957382.tar.gz
hercules-8dfa0aff485cd6fe449ce9bb0a4dc311ce957382.tar.bz2
hercules-8dfa0aff485cd6fe449ce9bb0a4dc311ce957382.tar.xz
hercules-8dfa0aff485cd6fe449ce9bb0a4dc311ce957382.zip
Removed one duplicit sql operation when saving items (bugreport:459)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11768 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/char_sql/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index f27cee6b7..4dbe2ee2f 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -769,7 +769,7 @@ int memitemdata_to_sql(const struct item items[], int max, int id, int tableswit
tablename, items[i].amount, items[i].equip, items[i].identify, items[i].refine, items[i].attribute);
for( j = 0; j < MAX_SLOTS; ++j )
StringBuf_Printf(&buf, ", `card%d`=%d", j, items[i].card[j]);
- StringBuf_Printf(&buf, ", `amount`='%d' WHERE `id`='%d' LIMIT 1", items[i].amount, item.id);
+ StringBuf_Printf(&buf, " WHERE `id`='%d' LIMIT 1", item.id);
if( SQL_ERROR == Sql_QueryStr(sql_handle, StringBuf_Value(&buf)) )
Sql_ShowDebug(sql_handle);