fixed error occurring when caller does not have a player attribute
This commit is contained in:
parent
5349ecfd61
commit
4330d37f20
1 changed files with 11 additions and 10 deletions
|
|
@ -234,6 +234,7 @@ class CmdEvMenuNode(Command):
|
|||
if _restore(caller):
|
||||
return
|
||||
orig_caller = caller
|
||||
if hasattr(caller, 'player'):
|
||||
caller = caller.player
|
||||
menu = caller.ndb._menutree
|
||||
if not menu:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue