summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-15 19:42:10 -0200
committershennetsind <ind@henn.et>2013-02-15 19:42:10 -0200
commit126225b561859c8bdd3c2ae319ddeec15bbaca47 (patch)
tree34ef108312170772350221d76b18780c30ad187a /src/char/char.c
parent7e82d5dcbe72a3598be915ae5af9a64fcbe56f3c (diff)
downloadhercules-126225b561859c8bdd3c2ae319ddeec15bbaca47.tar.gz
hercules-126225b561859c8bdd3c2ae319ddeec15bbaca47.tar.bz2
hercules-126225b561859c8bdd3c2ae319ddeec15bbaca47.tar.xz
hercules-126225b561859c8bdd3c2ae319ddeec15bbaca47.zip
Fix to char.c::mmo_char_fromsql loading skill id and flag as USHORT while both are UCHAR
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 8be0134ba..effcd6c31 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1278,9 +1278,9 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus* p, bool load_everything
if( SQL_ERROR == SqlStmt_Prepare(stmt, "SELECT `id`, `lv`,`flag` FROM `%s` WHERE `char_id`=? LIMIT %d", skill_db, MAX_SKILL)
|| SQL_ERROR == SqlStmt_BindParam(stmt, 0, SQLDT_INT, &char_id, 0)
|| SQL_ERROR == SqlStmt_Execute(stmt)
- || SQL_ERROR == SqlStmt_BindColumn(stmt, 0, SQLDT_USHORT, &tmp_skill.id, 0, NULL, NULL)
- || SQL_ERROR == SqlStmt_BindColumn(stmt, 1, SQLDT_USHORT, &tmp_skill.lv, 0, NULL, NULL)
- || SQL_ERROR == SqlStmt_BindColumn(stmt, 2, SQLDT_USHORT, &tmp_skill.flag, 0, NULL, NULL) )
+ || SQL_ERROR == SqlStmt_BindColumn(stmt, 0, SQLDT_USHORT, &tmp_skill.id , 0, NULL, NULL)
+ || SQL_ERROR == SqlStmt_BindColumn(stmt, 1, SQLDT_UCHAR , &tmp_skill.lv , 0, NULL, NULL)
+ || SQL_ERROR == SqlStmt_BindColumn(stmt, 2, SQLDT_UCHAR , &tmp_skill.flag, 0, NULL, NULL) )
SqlStmt_ShowDebug(stmt);
if( tmp_skill.flag != SKILL_FLAG_PERM_GRANTED )