Merge branch 'master' of makar:/var/www/git/pgfw

This commit is contained in:
Frank DeMarco 2016-02-17 15:14:53 -05:00
commit eeb156b9e9
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class Delegate(GameChild):
return self.get_command_attribute(evt) in commands
def get_command_attribute(self, evt):
return evt.dict[self.command_key]
return evt.dict.has_key(self.command_key) and evt.dict[self.command_key]
def post(self, command=None, cancel=False, **attributes):
attributes[self.command_key] = command