Temporary command error fix

This commit is contained in:
Treeku
2014-06-16 23:30:20 +01:00
parent b0febf4189
commit 83e8b59e51
+3
View File
@@ -492,6 +492,9 @@ public class CommandService implements INetworkDispatch {
else
weapon = (WeaponObject) core.objectService.getObject(attacker.getWeaponId());
if(weapon == null)
weapon = (WeaponObject) attacker.getSlottedObject("default_weapon");
float maxRange = 0;
if(command.getMaxRange() == 0)