summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 55c5433..d36c503 100644
--- a/play.js
+++ b/play.js
@@ -381,7 +381,7 @@ function on_update() {
// add if not enough
for (let space in view.units) {
let list = elements[space];
- let n = view.units[space][index];
+ let n = view.units[space][index] | 0;
while (list.length < n) {
if (overflow.length > 0) {
list.unshift(overflow.pop());