Browse Source

Removed one duplicit sql operation when saving items (bugreport:459)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11768 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 năm trước cách đây
mục cha
commit
ef0971541b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/char_sql/char.c

+ 1 - 1
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);