From 9f6988141b3238d693a6c4ee5db3fb1d4af56ce0 Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Fri, 16 May 2014 23:02:10 +0200 Subject: [PATCH] Fix loading of old saves. --- naja/gameboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naja/gameboard.py b/naja/gameboard.py index 18ecaf5..e02dd3d 100644 --- a/naja/gameboard.py +++ b/naja/gameboard.py @@ -19,7 +19,7 @@ class GameBoard(object): self.health = state['health'] self.wins = state['wins'] self.locations = [item.copy() for item in state['locations']] - self.puzzle = state['puzzle'] + self.puzzle = state.get('puzzle', False) self.player = player self.board_locations = board_locations self.player_mode = EXAMINE -- 2.34.1