Fix wrong nesting for catch
This commit is contained in:
parent
40f3ebf5d9
commit
c33539ed19
@ -88,11 +88,11 @@
|
||||
(rl/with-drawing!
|
||||
(draw config updated-state)
|
||||
(w/watch! (watch-fn config updated-state))
|
||||
(swap! game-state updated-state)
|
||||
(reset! game-state updated-state)))
|
||||
(catch Throwable t
|
||||
(doseq [buf @buffered-objs]
|
||||
(restore! buf))
|
||||
(report-exception! t))))))))
|
||||
(when buf (restore! buf)))
|
||||
(report-exception! t))))))
|
||||
(try
|
||||
(when unload
|
||||
(doseq [[_ tex] @texture-cache]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user