Fixed probable class cast exception when clanhall is not siegeable.
Contributed by Sahar.
This commit is contained in:
parent
beb8bd2bbe
commit
d048eb9816
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user