summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-25 23:59:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 23:07:45 +0300
commitcbf0a832f7e50ef8f2edb85557d44ee08cfec4b3 (patch)
tree1b89a8eb5605236877603c1530afd5aa8ce73d7f /src/char/char.c
parent940f28d39e2866dedd5ddfdfe559f0aeb70c8762 (diff)
downloadhercules-cbf0a832f7e50ef8f2edb85557d44ee08cfec4b3.tar.gz
hercules-cbf0a832f7e50ef8f2edb85557d44ee08cfec4b3.tar.bz2
hercules-cbf0a832f7e50ef8f2edb85557d44ee08cfec4b3.tar.xz
hercules-cbf0a832f7e50ef8f2edb85557d44ee08cfec4b3.zip
Fix wrong useless cycle added in commit c47d8e4b8f9d63ab6b4e7e286e91cd50a5bdd151.
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index bfa01db9a..f63f1c66d 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -793,7 +793,7 @@ int char_memitemdata_to_sql(const struct item items[], int max, int id, int tabl
StrBuf->Clear(&buf);
StrBuf->Printf(&buf, "UPDATE `%s` SET `amount`='%d', `equip`='%d', `identify`='%d', `refine`='%d',`attribute`='%d', `expire_time`='%u', `bound`='%d'",
tablename, items[i].amount, items[i].equip, items[i].identify, items[i].refine, items[i].attribute, items[i].expire_time, items[i].bound);
- for( j = 0; j < MAX_SLOTS; ++j )for( j = 0; j < MAX_SLOTS; ++j )
+ for( j = 0; j < MAX_SLOTS; ++j )
StrBuf->Printf(&buf, ", `card%d`=%d", j, items[i].card[j]);
StrBuf->Printf(&buf, " WHERE `id`='%d' LIMIT 1", item.id);