- Fix an NPE with arcs if the battlefield isn't displayed when trying to draw

This commit is contained in:
Sol
2012-11-11 20:58:29 +00:00
parent 9e16455467
commit d84049e6ee

View File

@@ -172,6 +172,10 @@ public enum TargetingOverlay {
if (arcs.size() < 1) { return; }
for (Point[] p : arcs) {
if (p[0] == null || p[1] == null) {
continue;
}
double SX = p[0].getX();
double SY = p[0].getY();
double CX = p[0].getY() > p[1].getY() ?