summaryrefslogtreecommitdiff
path: root/src/char/int_rodex.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-16 06:08:24 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-17 01:00:22 +0300
commit0c2cf7579324ade56287b9a15f1fc7c0a8dffffd (patch)
tree2fb002974ed6652c2217ab6e5fb2d60734e364a3 /src/char/int_rodex.c
parent58a8c9e6cf38e3fdb2557ec9d00169e96411f915 (diff)
downloadhercules-0c2cf7579324ade56287b9a15f1fc7c0a8dffffd.tar.gz
hercules-0c2cf7579324ade56287b9a15f1fc7c0a8dffffd.tar.bz2
hercules-0c2cf7579324ade56287b9a15f1fc7c0a8dffffd.tar.xz
hercules-0c2cf7579324ade56287b9a15f1fc7c0a8dffffd.zip
Replace item id shorts to int in char server.
Diffstat (limited to 'src/char/int_rodex.c')
-rw-r--r--src/char/int_rodex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_rodex.c b/src/char/int_rodex.c
index e70a6bbf5..18c277574 100644
--- a/src/char/int_rodex.c
+++ b/src/char/int_rodex.c
@@ -164,7 +164,7 @@ static int inter_rodex_fromsql(int char_id, int account_id, int8 opentype, int64
if (msg.type & MAIL_TYPE_ITEM) {
if (SQL_ERROR == SQL->StmtExecute(stmt_items)
- || SQL_ERROR == SQL->StmtBindColumn(stmt_items, 0, SQLDT_SHORT, &it.nameid, sizeof it.nameid, NULL, NULL)
+ || SQL_ERROR == SQL->StmtBindColumn(stmt_items, 0, SQLDT_INT, &it.nameid, sizeof it.nameid, NULL, NULL)
|| SQL_ERROR == SQL->StmtBindColumn(stmt_items, 1, SQLDT_SHORT, &it.amount, sizeof it.amount, NULL, NULL)
|| SQL_ERROR == SQL->StmtBindColumn(stmt_items, 2, SQLDT_UINT, &it.equip, sizeof it.equip, NULL, NULL)
|| SQL_ERROR == SQL->StmtBindColumn(stmt_items, 3, SQLDT_CHAR, &it.identify, sizeof it.identify, NULL, NULL)
@@ -177,7 +177,7 @@ static int inter_rodex_fromsql(int char_id, int account_id, int8 opentype, int64
SqlStmt_ShowDebug(stmt_items);
}
for (i = 0; i < MAX_SLOTS; i++) {
- if (SQL_ERROR == SQL->StmtBindColumn(stmt_items, 9 + i, SQLDT_SHORT, &it.card[i], sizeof it.card[i], NULL, NULL))
+ if (SQL_ERROR == SQL->StmtBindColumn(stmt_items, 9 + i, SQLDT_INT, &it.card[i], sizeof it.card[i], NULL, NULL))
SqlStmt_ShowDebug(stmt_items);
}
for (i = 0; i < MAX_ITEM_OPTIONS; i++) {