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:
Griatch 2012-09-18 21:48:41 +02:00
parent 0dae03156c
commit ee450a4fed

View file

@ -581,8 +581,9 @@ class ObjectDB(TypedObject):
attribute_name=attribute_name,
candidates=candidates,
exact=exact)
if not ignore_errors:
result = _AT_SEARCH_RESULT(self, ostring, results, global_search)
if ignore_errors:
return results
result = _AT_SEARCH_RESULT(self, ostring, results, global_search)
if player and result:
return result.player
return result