Changeset 131:85e2fa1f77c2


Ignore:
Timestamp:
Apr 4, 2011, 10:36:36 PM (9 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Fix game state-related level load crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/levelscene.py

    r127 r131  
    3131        for sprite in self._level.tiles:
    3232            self._world.add(sprite)
    33         for sprite in self._game_state.levels[self._level.name]:
     33        for sprite in self._game_state.levels.get(self._level.name, []):
    3434            self._world.add(sprite)
    3535
Note: See TracChangeset for help on using the changeset viewer.