diff options
author | Haru <haru@dotalux.com> | 2016-02-19 21:40:53 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-20 18:32:07 +0100 |
commit | 127093b5327de343f4ae3f7c8752c465eea911c8 (patch) | |
tree | aad51f53ba9bb8b99aa55a902ab1353a1937b403 /src/char/int_homun.c | |
parent | f4fced20c769ccee7f808531221dda481f7bbcca (diff) | |
download | hercules-127093b5327de343f4ae3f7c8752c465eea911c8.tar.gz hercules-127093b5327de343f4ae3f7c8752c465eea911c8.tar.bz2 hercules-127093b5327de343f4ae3f7c8752c465eea911c8.tar.xz hercules-127093b5327de343f4ae3f7c8752c465eea911c8.zip |
Changed buffer argument of SQL->StmtBindParam() to const
Parameters are supposed to be read-only
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_homun.c')
-rw-r--r-- | src/char/int_homun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_homun.c b/src/char/int_homun.c index bfb0009e6..90643699c 100644 --- a/src/char/int_homun.c +++ b/src/char/int_homun.c @@ -171,8 +171,8 @@ bool mapif_homunculus_save(const struct s_homunculus *hd) } else { for (i = 0; i < MAX_HOMUNSKILL; ++i) { if (hd->hskill[i].id > 0 && hd->hskill[i].lv != 0) { - SQL->StmtBindParam(stmt, 0, SQLDT_USHORT, (void*)&hd->hskill[i].id, 0); // FIXME: StmtBindParam should take const void - SQL->StmtBindParam(stmt, 1, SQLDT_USHORT, (void*)&hd->hskill[i].lv, 0); // FIXME: StmtBindParam should take const void + SQL->StmtBindParam(stmt, 0, SQLDT_USHORT, &hd->hskill[i].id, 0); + SQL->StmtBindParam(stmt, 1, SQLDT_USHORT, &hd->hskill[i].lv, 0); if (SQL_ERROR == SQL->StmtExecute(stmt)) { SqlStmt_ShowDebug(stmt); flag = false; |