Bugfix for latest optimization.
This commit is contained in:
parent
5b88972523
commit
dc4340b34e
1 changed files with 2 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ class ObjectDB(TypedObject):
|
||||||
def __location_set(self, location):
|
def __location_set(self, location):
|
||||||
"Setter. Allows for self.location = location"
|
"Setter. Allows for self.location = location"
|
||||||
try:
|
try:
|
||||||
old_loc = _GA(_GA(self, "location"), "dbobj")
|
old_loc = _GA(self, "location")
|
||||||
|
|
||||||
if ObjectDB.objects.dbref(location):
|
if ObjectDB.objects.dbref(location):
|
||||||
# dbref search
|
# dbref search
|
||||||
|
|
@ -288,7 +288,7 @@ class ObjectDB(TypedObject):
|
||||||
_set_cache(self, "location", loc)
|
_set_cache(self, "location", loc)
|
||||||
# update the contents of each location
|
# update the contents of each location
|
||||||
if old_loc:
|
if old_loc:
|
||||||
_GA(old_loc, "contents_update")(self, remove=True)
|
_GA(_GA(old_loc, "dbobj"), "contents_update")(self, remove=True)
|
||||||
if loc:
|
if loc:
|
||||||
_GA(loc, "contents_update")(_GA(self, "typeclass"))
|
_GA(loc, "contents_update")(_GA(self, "typeclass"))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue