diff --git a/src/engine/db/handlers/dbMobHandler.java b/src/engine/db/handlers/dbMobHandler.java index 962a1cb6..3a76c747 100644 --- a/src/engine/db/handlers/dbMobHandler.java +++ b/src/engine/db/handlers/dbMobHandler.java @@ -127,13 +127,13 @@ public class dbMobHandler extends dbHandlerBase { } } - public boolean ADD_TO_GUARDS(final long captainUID, final String name) { + public boolean ADD_TO_GUARDS(final long captainUID, final String minionName) { try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_guards` (`captainUID`, `name`) VALUES (?,?)")) { + PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_guards` (`captainUID`, `minionName`) VALUES (?,?)")) { preparedStatement.setLong(1, captainUID); - preparedStatement.setString(2, name); + preparedStatement.setString(2, minionName); return (preparedStatement.executeUpdate() > 0);