mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Fix an NPE with arcs if the battlefield isn't displayed when trying to draw
This commit is contained in:
@@ -172,6 +172,10 @@ public enum TargetingOverlay {
|
|||||||
if (arcs.size() < 1) { return; }
|
if (arcs.size() < 1) { return; }
|
||||||
|
|
||||||
for (Point[] p : arcs) {
|
for (Point[] p : arcs) {
|
||||||
|
if (p[0] == null || p[1] == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
double SX = p[0].getX();
|
double SX = p[0].getX();
|
||||||
double SY = p[0].getY();
|
double SY = p[0].getY();
|
||||||
double CX = p[0].getY() > p[1].getY() ?
|
double CX = p[0].getY() > p[1].getY() ?
|
||||||
|
|||||||
Reference in New Issue
Block a user