diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-26 01:29:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-26 01:29:57 +0300 |
commit | 61b994259e853bb2e82ea3b0e7464892f9bc421a (patch) | |
tree | f91d444d37da0e29886df07e7f7661b9b3f0009e | |
parent | 9712d4c8820c14d43d5869163722ccda7595a5df (diff) | |
download | plugin-61b994259e853bb2e82ea3b0e7464892f9bc421a.tar.gz plugin-61b994259e853bb2e82ea3b0e7464892f9bc421a.tar.bz2 plugin-61b994259e853bb2e82ea3b0e7464892f9bc421a.tar.xz plugin-61b994259e853bb2e82ea3b0e7464892f9bc421a.zip |
Fix show additional slots on char server (after hercules update).
-rw-r--r-- | src/echar/char.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/echar/char.c b/src/echar/char.c index 220c28b..6cf13fc 100644 --- a/src/echar/char.c +++ b/src/echar/char.c @@ -216,13 +216,13 @@ void send_additional_slots(int fd, struct char_session_data* sd) "LEFT JOIN inventory ON inventory.char_id = `char`.char_id " "WHERE account_id = '%d' AND equip <> 0 AND amount > 0 ORDER BY inventory.char_id", sd->account_id) || SQL_ERROR == SQL->StmtExecute(stmt) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 0, SQLDT_INT, &char_id, 0, NULL, NULL) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 1, SQLDT_INT, &name_id, 0, NULL, NULL) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 2, SQLDT_INT, &slot, 0, NULL, NULL) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 3, SQLDT_SHORT, &card0, 0, NULL, NULL) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 4, SQLDT_SHORT, &card1, 0, NULL, NULL) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 5, SQLDT_SHORT, &card2, 0, NULL, NULL) - || SQL_ERROR == SQL->StmtBindColumn(stmt, 6, SQLDT_SHORT, &card3, 0, NULL, NULL)) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 0, SQLDT_INT, &char_id, sizeof char_id, NULL, NULL) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 1, SQLDT_INT, &name_id, sizeof name_id, NULL, NULL) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 2, SQLDT_INT, &slot, sizeof slot, NULL, NULL) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 3, SQLDT_SHORT, &card0, sizeof card0, NULL, NULL) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 4, SQLDT_SHORT, &card1, sizeof card1, NULL, NULL) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 5, SQLDT_SHORT, &card2, sizeof card2, NULL, NULL) + || SQL_ERROR == SQL->StmtBindColumn(stmt, 6, SQLDT_SHORT, &card3, sizeof card3, NULL, NULL)) { SqlStmt_ShowDebug(stmt); SQL->StmtFree(stmt); |