Fixed a bug in the search method causing it to fail for commands ignoring the error handler (such as drop). Resolves issue 252.
This commit is contained in:
parent
0dae03156c
commit
ee450a4fed
1 changed files with 3 additions and 2 deletions
|
|
@ -581,7 +581,8 @@ class ObjectDB(TypedObject):
|
||||||
attribute_name=attribute_name,
|
attribute_name=attribute_name,
|
||||||
candidates=candidates,
|
candidates=candidates,
|
||||||
exact=exact)
|
exact=exact)
|
||||||
if not ignore_errors:
|
if ignore_errors:
|
||||||
|
return results
|
||||||
result = _AT_SEARCH_RESULT(self, ostring, results, global_search)
|
result = _AT_SEARCH_RESULT(self, ostring, results, global_search)
|
||||||
if player and result:
|
if player and result:
|
||||||
return result.player
|
return result.player
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue