mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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.
|
* and creates new panels if necessary.
|
||||||
*/
|
*/
|
||||||
public void updateStall() {
|
public void updateStall() {
|
||||||
|
if (AllZone.getQuestData() == null) { return; }
|
||||||
|
|
||||||
this.lblStats.setText(
|
this.lblStats.setText(
|
||||||
"Credits: " + AllZone.getQuestData().getCredits()
|
"Credits: " + AllZone.getQuestData().getCredits()
|
||||||
+ " Life: " + AllZone.getQuestData().getLife());
|
+ " 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 if (selectable) { g2d0.setColor(FSkin.getColor(FSkin.Colors.CLR_INACTIVE)); }
|
||||||
else { g2d0.setColor(getBackground()); }
|
else { g2d0.setColor(getBackground()); }
|
||||||
|
|
||||||
// Parent must be drawn onto clipped object.
|
|
||||||
g2d0.fillRoundRect(0, 0, pnlW, pnlH, cornerDiameter, cornerDiameter);
|
g2d0.fillRoundRect(0, 0, pnlW, pnlH, cornerDiameter, cornerDiameter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user