diff --git a/ple/games/base/pygamewrapper.py b/ple/games/base/pygamewrapper.py index f76875a..0d984ba 100644 --- a/ple/games/base/pygamewrapper.py +++ b/ple/games/base/pygamewrapper.py @@ -69,7 +69,7 @@ def _setAction(self, action, last_action): if action is None: action = self.NOOP - if last_action is None: + if last_action is None or last_action==[]: last_action = self.NOOP kd = pygame.event.Event(KEYDOWN, {"key": action})