Fixed love.errhand.

This commit is contained in:
Alex Szpakowski
2015-07-30 20:33:38 -03:00
parent 8bf8c0cd18
commit 6bce7c7cd0
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -567,7 +567,7 @@ function love.errhand(msg)
return
end
if not love.graphics.isCreated() or not love.window.isCreated() then
if not love.graphics.isCreated() or not love.window.isOpen() then
local success, status = pcall(love.window.setMode, 800, 600)
if not success or not status then
return