mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28: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; }
|
||||
|
||||
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() ?
|
||||
|
||||
Reference in New Issue
Block a user