fixed command crash

This commit is contained in:
Light2
2014-04-07 19:57:21 +02:00
parent 3928d58448
commit ac39628b29
+4 -1
View File
@@ -338,7 +338,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(commandName);