Skip to content

Commit e1031a5

Browse files
committed
Fixed a bug: "Game loaded" was printed even on an abort.
1 parent e7e37cd commit e1031a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simalq/commands.hy

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@
179179
LoadGame (do
180180
(try
181181
(when (setx path (load-saved-game-screen #* (get-saves-list)))
182-
(load-game path))
182+
(load-game path)
183+
(msg "Game loaded."))
183184
(except [e IOError]
184-
(raise (CommandError f"Load failed: {e}"))))
185-
(msg "Game loaded."))
185+
(raise (CommandError f"Load failed: {e}")))))
186186

187187
Quit
188188
(sys.exit)))

0 commit comments

Comments
 (0)