Fix wrong nesting for catch

This commit is contained in:
Joseph Ferano 2026-09-05 22:32:42 +07:00
parent 40f3ebf5d9
commit c33539ed19

View File

@ -88,11 +88,11 @@
(rl/with-drawing!
(draw config updated-state)
(w/watch! (watch-fn config updated-state))
(swap! game-state updated-state)
(catch Throwable t
(doseq [buf @buffered-objs]
(restore! buf))
(report-exception! t))))))))
(reset! game-state updated-state)))
(catch Throwable t
(doseq [buf @buffered-objs]
(when buf (restore! buf)))
(report-exception! t))))))
(try
(when unload
(doseq [[_ tex] @texture-cache]