newdash: Fix crash on missing at state

master
informatic 2017-04-23 12:21:17 +02:00
parent 62527b727b
commit aac427a19c
1 changed files with 1 additions and 0 deletions

View File

@ -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