summaryrefslogtreecommitdiff
path: root/src/char/int_rodex.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-23 01:04:25 +0200
committerGitHub <noreply@github.com>2018-07-23 01:04:25 +0200
commitbe3209bc5ff1b88314c47a6fdc53d73deaa9e96a (patch)
treea12e7ac7b7e6ae8410ba170d345a3022da0e51a5 /src/char/int_rodex.c
parentbcaf5eaa9c8ef65068ab5468d7bd13e2df516cab (diff)
parent6c73aa1b03b04d4d9a2ba9056b8583475856da12 (diff)
downloadhercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.tar.gz
hercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.tar.bz2
hercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.tar.xz
hercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.zip
Merge pull request #2134 from 4144/itemint
Update int fields to using int32
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++) {