summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2017-04-23 12:21:17 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2017-04-23 12:21:17 +0200
commitaac427a19c67bf2bca06d4f0e0d9942c47f4d6af (patch)
tree5fe02545d6dfc18b99bea433b0995452ae83bd57
parent62527b727bfa853336d27bd107f1a239228bf1a2 (diff)
downloadlove2d-signage-aac427a19c67bf2bca06d4f0e0d9942c47f4d6af.tar.gz
love2d-signage-aac427a19c67bf2bca06d4f0e0d9942c47f4d6af.tar.bz2
love2d-signage-aac427a19c67bf2bca06d4f0e0d9942c47f4d6af.zip
newdash: Fix crash on missing at state
-rw-r--r--nodes/newdash.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/nodes/newdash.lua b/nodes/newdash.lua
index 851a8c5..d9e6d91 100644
--- a/nodes/newdash.lua
+++ b/nodes/newdash.lua
@@ -89,6 +89,7 @@ function node:render()
love.graphics.setFont(headerFont)
love.graphics.printf("at hackerspace:", 50, 593, 300, 'left')
love.graphics.setFont(atFont)
+ users = {}
if self.state.at then
users = lume.map(self.state.at.users, function(v) return v.login end)
if self.state.at.unknown > 0 then