summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/play.js b/play.js
index 1408a0a..89a5413 100644
--- a/play.js
+++ b/play.js
@@ -16,6 +16,8 @@ const ANTITANK = 2
const ARTILLERY = 3
function set_has(set, item) {
+ if (!set)
+ return false
let a = 0
let b = set.length - 1
while (a <= b) {