mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fixed a crashing issue when the error handler can’t create a window
This commit is contained in:
@@ -1520,7 +1520,8 @@ function love.errhand(msg)
|
||||
end
|
||||
|
||||
if not love.graphics.isCreated() or not love.window.isCreated() then
|
||||
if not pcall(love.window.setMode, 800, 600) then
|
||||
local success, status = pcall(love.window.setMode, 800, 600)
|
||||
if not success or not status then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user