mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 08:16:30 +01:00
Fixed a bug with setting a location to None.
This commit is contained in:
parent
4dbdf680a1
commit
f677902811
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue