mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix NPE
This commit is contained in:
committed by
Hans Mackowiak
parent
829eae7c97
commit
bc5e5a731d
@@ -544,7 +544,7 @@ public class CardRenderer {
|
||||
g.drawRect(BORDER_THICKNESS, Color.MAGENTA, cx, cy, cw, ch);
|
||||
}
|
||||
//Ability Icons
|
||||
boolean onbattlefield = card.getZone().equals(ZoneType.Battlefield);
|
||||
boolean onbattlefield = ZoneType.Battlefield.equals(card.getZone());
|
||||
float abiY = cy;
|
||||
float abiX = cx + ((cw*2)/2.3f);
|
||||
float abiScale = cw / 5.5f;
|
||||
|
||||
Reference in New Issue
Block a user