Error handler now checks if there's a screen created, if not fall back to text erroring

This commit is contained in:
bart@bartbes.ath.cx
2010-01-03 13:20:32 +01:00
parent b2972d6fd6
commit 4c06ca3284
2 changed files with 164 additions and 160 deletions
+1 -1
View File
@@ -714,7 +714,7 @@ end
function love.errhand(msg)
if not love.graphics or not love.event then
if not love.graphics or not love.event or not love.graphics.isCreated() then
return error_printer(msg)
end