Fixed a bug with setting a location to None.

This commit is contained in:
Griatch 2012-09-22 13:37:22 +02:00
parent 4dbdf680a1
commit f677902811

View file

@ -281,7 +281,7 @@ class ObjectDB(TypedObject):
# dbref search
loc = ObjectDB.objects.dbref_search(location)
loc = loc and _GA(loc, "dbobj")
elif type(location) != ObjectDB:
elif location and type(location) != ObjectDB:
loc = _GA(location, "dbobj")
else:
loc = location