Fixed probable class cast exception when clanhall is not siegeable.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2019-05-16 22:58:24 +00:00
parent beb8bd2bbe
commit d048eb9816

View File

@ -345,7 +345,7 @@ public class DoorInstance extends Creature
final PlayerInstance actingPlayer = attacker.getActingPlayer();
if (_clanHall != null)
if ((_clanHall != null) && _clanHall.isSiegableHall())
{
final SiegableHall hall = (SiegableHall) _clanHall;
if (!hall.isSiegableHall())