Fix errhand when headset module is disabled;

This commit is contained in:
bjorn 2023-07-17 00:10:02 -07:00
parent b37c74c93b
commit 2e6f95f06a
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ function lovr.errhand(message)
if lovr.audio then lovr.audio.stop() end
if lovr.headset.getPassthrough() == 'opaque' then
if not lovr.headset or lovr.headset.getPassthrough() == 'opaque' then
lovr.graphics.setBackgroundColor(.11, .10, .14)
else
lovr.graphics.setBackgroundColor(0, 0, 0, 0)