From dc4340b34e6df2c0825a1fd3a6b3842844953fef Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 20 Sep 2012 03:01:30 +0200 Subject: [PATCH] Bugfix for latest optimization. --- src/objects/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects/models.py b/src/objects/models.py index c97219858e..6cf9ceaea4 100644 --- a/src/objects/models.py +++ b/src/objects/models.py @@ -275,7 +275,7 @@ class ObjectDB(TypedObject): def __location_set(self, location): "Setter. Allows for self.location = location" try: - old_loc = _GA(_GA(self, "location"), "dbobj") + old_loc = _GA(self, "location") if ObjectDB.objects.dbref(location): # dbref search @@ -288,7 +288,7 @@ class ObjectDB(TypedObject): _set_cache(self, "location", loc) # update the contents of each location if old_loc: - _GA(old_loc, "contents_update")(self, remove=True) + _GA(_GA(old_loc, "dbobj"), "contents_update")(self, remove=True) if loc: _GA(loc, "contents_update")(_GA(self, "typeclass")) except Exception: