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:
parent
356e205f2c
commit
77fc9467bc
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue