mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Bugfix: bazaar crash if no quest data
This commit is contained in:
@@ -143,6 +143,8 @@ public class ViewStall extends JPanel {
|
||||
* and creates new panels if necessary.
|
||||
*/
|
||||
public void updateStall() {
|
||||
if (AllZone.getQuestData() == null) { return; }
|
||||
|
||||
this.lblStats.setText(
|
||||
"Credits: " + AllZone.getQuestData().getCredits()
|
||||
+ " Life: " + AllZone.getQuestData().getLife());
|
||||
|
||||
@@ -230,7 +230,6 @@ public class FPanel extends JPanel {
|
||||
else if (selectable) { g2d0.setColor(FSkin.getColor(FSkin.Colors.CLR_INACTIVE)); }
|
||||
else { g2d0.setColor(getBackground()); }
|
||||
|
||||
// Parent must be drawn onto clipped object.
|
||||
g2d0.fillRoundRect(0, 0, pnlW, pnlH, cornerDiameter, cornerDiameter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user