mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix crash in tempShowCard
Fix crash that can occur from calling canPlay too early
This commit is contained in:
@@ -164,7 +164,9 @@ public class PlayerControllerHuman extends PlayerController {
|
||||
}
|
||||
}
|
||||
private void tempShowCard(Card c) {
|
||||
CardView cv = MatchUtil.cards.get(c.getId());
|
||||
if (c == null) { return; }
|
||||
|
||||
CardView cv = gameView.getCardView(c, false);
|
||||
if (!cv.mayBeShown()) {
|
||||
cv.setMayBeShown(true);
|
||||
tempShownCards.add(c);
|
||||
|
||||
Reference in New Issue
Block a user