From 710bc4a5242b47a17a9fdcc34323587c38cfb09b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 19 Jul 2022 12:25:47 +0200 Subject: No rommel in 1940 --- play.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'play.js') 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) { -- cgit v1.2.3