Fixed infinite loop at clanhall siege.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-11-16 13:08:56 +00:00
parent 84c278bd3a
commit 31015ab789
2 changed files with 4 additions and 0 deletions

View File

@@ -146,8 +146,10 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
{ {
if (_guards != null) if (_guards != null)
{ {
_guards.forEach(guard -> guard.startRespawn());
return; return;
} }
_guards = new ArrayList<>(); _guards = new ArrayList<>();
try (Connection con = DatabaseFactory.getConnection(); try (Connection con = DatabaseFactory.getConnection();
PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS)) PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS))

View File

@@ -146,8 +146,10 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
{ {
if (_guards != null) if (_guards != null)
{ {
_guards.forEach(guard -> guard.startRespawn());
return; return;
} }
_guards = new ArrayList<>(); _guards = new ArrayList<>();
try (Connection con = DatabaseFactory.getConnection(); try (Connection con = DatabaseFactory.getConnection();
PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS)) PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS))