diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-05 16:42:44 +0100 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-10-05 16:42:44 +0100 |
commit | 78e6e086c53ea6a66422521e15e1bfacb1d5790c (patch) | |
tree | ca692b96d4abc6661ab79234521fba8675d75377 | |
parent | e33f5f76d929d67c1fb2437dced7ea4ed3bd5582 (diff) | |
download | 1989-dawn-of-freedom-78e6e086c53ea6a66422521e15e1bfacb1d5790c.tar.gz |
Fix for setup
-rw-r--r-- | play.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -513,7 +513,7 @@ if (!view.is_pwr_struggle) { // CEAUSESCU
-if (view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) {
+if (view.ceausescu_cards && view.ceausescu_cards.length > 0 && view.is_pwr_struggle === true) {
document.getElementById("ceausescu_panel").classList.remove("hide")
for (let c of view.ceausescu_cards) {
let power_card = ui.power_cards[c]
|