about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 22ef6e7..63c0e8d 100644
--- a/main.lua
+++ b/main.lua
@@ -323,7 +323,9 @@ end
 
 -- make sure to save before quitting
 function love.quit()
-  save_to_disk(Lines, Filename)
+  if Next_save then
+    save_to_disk(Lines, Filename)
+  end
 end
 
 function App.mousepressed(x,y, mouse_button)