From ff8c22df7b0ba3cdb25962e6afd19e7867626457 Mon Sep 17 00:00:00 2001 From: Light2 Date: Mon, 7 Apr 2014 20:44:20 +0200 Subject: [PATCH] command class cast fix --- src/services/command/CommandService.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/command/CommandService.java b/src/services/command/CommandService.java index 8ab54593..8e9bcf44 100644 --- a/src/services/command/CommandService.java +++ b/src/services/command/CommandService.java @@ -280,7 +280,10 @@ public class CommandService implements INetworkDispatch { sub += 5; } - boolean isCombatCommand = (Boolean) visitor.getObject(i, 82-sub); + boolean isCombatCommand = false; + + if(visitor.getObject(i, 82-sub) instanceof Boolean) + isCombatCommand = (Boolean) visitor.getObject(i, 82-sub); if (hasCharacterAbility || isCombatCommand) { CombatCommand command = new CombatCommand(name.toLowerCase());