Fix accidentally breaking QuitAction

When I added some type safety to Engine.process_input_action, I just
dropped any action without an actor.
This commit is contained in:
Eryn Wells 2023-02-12 19:48:45 -08:00
parent 356e205f2c
commit 77fc9467bc

View file

@ -126,7 +126,7 @@ class Engine:
'''Process an Action from player input'''
if not isinstance(action, ActionWithActor):
log.ACTIONS_TREE.error('Attempted to process input action with no actor')
action.perform(self)
return
log.ACTIONS_TREE.info('Processing Hero Actions')