Fixed control

This commit is contained in:
Anuken
2022-02-09 17:23:57 -05:00
parent 44b37cfe55
commit a8d750efce
+1 -1
View File
@@ -21,7 +21,7 @@ public class CommandAI extends AIController{
updateVisuals(); updateVisuals();
updateTargeting(); updateTargeting();
if(invalid(attackTarget)){ if(attackTarget != null && invalid(attackTarget)){
attackTarget = null; attackTarget = null;
targetPos = null; targetPos = null;
} }