diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index 4a56df1ea..4d9bb05c2 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -59,7 +59,7 @@ class ObjectSessionHandler(object): self._sessid_cache = list(set(int(val) for val in (self.obj.db_sessid or "").split(",") if val)) if any(sessid for sessid in self._sessid_cache if sessid not in _SESSIONS): # cache is out of sync with sessionhandler! Only retain the ones in the handler. - self.sessid_cache = [sessid for sessid in self._sessid_cache if sessid in _SESSIONS] + self._sessid_cache = [sessid for sessid in self._sessid_cache if sessid in _SESSIONS] self.obj.db_sessid = ",".join(str(val) for val in self._sessid_cache) self.obj.save(update_fields=["db_sessid"])