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! (rl/with-drawing!
(draw config updated-state) (draw config updated-state)
(w/watch! (watch-fn config updated-state)) (w/watch! (watch-fn config updated-state))
(swap! game-state updated-state) (reset! game-state updated-state)))
(catch Throwable t (catch Throwable t
(doseq [buf @buffered-objs] (doseq [buf @buffered-objs]
(restore! buf)) (when buf (restore! buf)))
(report-exception! t)))))))) (report-exception! t))))))
(try (try
(when unload (when unload
(doseq [[_ tex] @texture-cache] (doseq [[_ tex] @texture-cache]