Small fix in CursedWeapon SQL.

Contributed by yksdtc.
This commit is contained in:
MobiusDev
2017-02-11 11:52:44 +00:00
parent 77e56a6c1a
commit f926e60e2e
2 changed files with 2 additions and 2 deletions

View File

@ -479,7 +479,7 @@ public class CursedWeapon implements INamable
try (Connection con = DatabaseFactory.getInstance().getConnection();
PreparedStatement del = con.prepareStatement("DELETE FROM cursed_weapons WHERE itemId = ?");
PreparedStatement ps = con.prepareStatement("INSERT INTO cursed_weapons (itemId, charId, playerKarma, playerPkKills, nbKills, endTime) VALUES (?, ?, ?, ?, ?, ?)"))
PreparedStatement ps = con.prepareStatement("INSERT INTO cursed_weapons (itemId, charId, reputation, playerPkKills, nbKills, endTime) VALUES (?, ?, ?, ?, ?, ?)"))
{
// Delete previous datas
del.setInt(1, _itemId);