Added a check to allow obj.search to also search for 0.

This commit is contained in:
Griatch 2012-09-29 16:24:47 +02:00
parent a347252407
commit 33c15e99d2

View file

@ -267,7 +267,7 @@ class ObjectManager(TypedObjectManager):
return []
dbref = not attribute_name and self.dbref(ostring)
if dbref:
if dbref or dbref == 0:
# Easiest case - dbref matching (always exact)
dbref_match = self.dbref_search(dbref)
if dbref_match: