From 05a3d0435d5acd7ab879439b4d93ffe28e654de4 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 27 Aug 2017 10:32:14 +0200 Subject: [PATCH] Add missing fullcache check to attributes.clear(). Resolves #1404. --- evennia/typeclasses/attributes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evennia/typeclasses/attributes.py b/evennia/typeclasses/attributes.py index 35d8d10f2b..6b35ad7607 100644 --- a/evennia/typeclasses/attributes.py +++ b/evennia/typeclasses/attributes.py @@ -646,6 +646,8 @@ class AttributeHandler(object): type `attredit` on the Attribute in question. """ + if not self._cache_complete: + self._fullcache() if accessing_obj: [attr.delete() for attr in self._cache.values() if attr and attr.access(accessing_obj, self._attredit, default=default_access)]