From f221f02b593205dba73652e26e2c11ac3bfec373 Mon Sep 17 00:00:00 2001 From: Ziggeh Date: Mon, 7 Apr 2014 10:33:12 +0200 Subject: [PATCH] Commands - Fixed minor variable naming error --- src/services/command/CommandService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/command/CommandService.java b/src/services/command/CommandService.java index f3364e5b..268b34b2 100644 --- a/src/services/command/CommandService.java +++ b/src/services/command/CommandService.java @@ -244,11 +244,11 @@ public class CommandService implements INetworkDispatch { core.scriptService.callScript("scripts/commands/", command.getCommandName(), "run", core, actor, target, commandArgs); } - public BaseSWGCommand getCommandByCRC(int CRC) { + public BaseSWGCommand getCommandByCRC(int commandCRC) { Vector commands = new Vector(commandLookup); for (BaseSWGCommand command : commands) { - if (command.getCommandCRC() == CRC) { + if (command.getCommandCRC() == commandCRC) { return command; } } @@ -260,7 +260,7 @@ public class CommandService implements INetworkDispatch { if (visitor.getObject(i, 0) != null) { String name = ((String) visitor.getObject(i, 0)).toLowerCase(); - if (CRC.StringtoCRC(name) == CRC) { + if (CRC.StringtoCRC(name) == commandCRC) { boolean hasCharacterAbility = (((String) visitor.getObject(i, 7)).length() > 0); boolean isCombatCommand = (Boolean) visitor.getObject(i, 82);