Skip to content

Commit

Permalink
Fixed a bug: "Game loaded" was printed even on an abort.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Feb 25, 2024
1 parent e7e37cd commit e1031a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simalq/commands.hy
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@
LoadGame (do
(try
(when (setx path (load-saved-game-screen #* (get-saves-list)))
(load-game path))
(load-game path)
(msg "Game loaded."))
(except [e IOError]
(raise (CommandError f"Load failed: {e}"))))
(msg "Game loaded."))
(raise (CommandError f"Load failed: {e}")))))

Quit
(sys.exit)))
Expand Down

0 comments on commit e1031a5

Please sign in to comment.