GUI: fixed that Card Viewer can't open tokens list;

This commit is contained in:
Oleg Agafonov 2023-04-13 14:35:43 +04:00
parent cfa1dffc1e
commit 1f68e4f9ba

View file

@ -53,7 +53,7 @@ public class PermanentView extends CardView {
this.attachedTo = permanent.getAttachedTo();
// show face down cards to all players at the game end
boolean showFaceDownInfo = controlled || game.hasEnded();
boolean showFaceDownInfo = controlled || (game != null && game.hasEnded());
if (isToken()) {
original = new CardView(((PermanentToken) permanent).getToken().copy(), (Game) null);