diff --git a/main.py b/main.py index 4413d92..0f2a247 100644 --- a/main.py +++ b/main.py @@ -68,8 +68,8 @@ def main(): pause = True while pause: clock.tick(5) - for event in pygame.event.get(): - if event.type == pglocals.KEYDOWN and event.key == pglocals.K_ESCAPE: + for subevent in pygame.event.get(): + if subevent.type == pglocals.KEYDOWN and subevent.key == pglocals.K_ESCAPE: pause = False break