From bc46856117355c6250587999073357924a227937 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 8 May 2022 23:45:20 -0700 Subject: [PATCH] Every action needs an actor, even ExitAction --- roguebasin/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roguebasin/events.py b/roguebasin/events.py index 5d8a025..aba2b0c 100644 --- a/roguebasin/events.py +++ b/roguebasin/events.py @@ -79,7 +79,7 @@ class EventHandler(tcod.event.EventDispatch[Action]): return result def ev_quit(self, event: tcod.event.Quit) -> Optional[Action]: - return ExitAction() + return ExitAction(self.engine.hero) def ev_keydown(self, event: tcod.event.KeyDown) -> Optional[Action]: action: Optional[Action] = None