about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-03 21:08:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-03 21:08:30 -0700
commit7d5dae9e397f585ba1bbda019cb23f391e9fec90 (patch)
treef43855619d0b27b5636794140dd841f364d2bb72
parent1a6f533e2c08c0f330217e10d7ae01d1fd2a8d7a (diff)
downloadview.love-7d5dae9e397f585ba1bbda019cb23f391e9fec90.tar.gz
bugfix: cold start
-rw-r--r--run.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/run.lua b/run.lua
index c334811..405e7e5 100644
--- a/run.lua
+++ b/run.lua
@@ -134,6 +134,9 @@ function run.quit()
 end
 
 function run.settings()
+  if Settings == nil then
+    Settings = {}
+  end
   if Current_app == 'run' then
     Settings.x, Settings.y, Settings.displayindex = love.window.getPosition()
   end