From: Jeremy Thurgood Date: Fri, 16 May 2014 21:02:10 +0000 (+0200) Subject: Fix loading of old saves. X-Git-Tag: 0.1~180 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=9f6988141b3238d693a6c4ee5db3fb1d4af56ce0;p=naja.git Fix loading of old saves. --- 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