mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 23:17:17 +02:00
Some fixes to the caching, particularly in set_attribute.
This commit is contained in:
parent
9d970ea7c5
commit
e3ce0a7933
2 changed files with 4 additions and 3 deletions
|
|
@ -1247,9 +1247,9 @@ class TypedObject(SharedMemoryModel):
|
|||
if attrib_obj:
|
||||
# use old attribute
|
||||
attrib_obj = attrib_obj[0]
|
||||
else:
|
||||
# no match; create new attribute
|
||||
attrib_obj = attrclass(db_key=attribute_name, db_obj=self)
|
||||
else:
|
||||
# no match; create new attribute
|
||||
attrib_obj = attrclass(db_key=attribute_name, db_obj=self)
|
||||
# re-set an old attribute value
|
||||
attrib_obj.value = new_value
|
||||
_GA(self,"_attribute_cache")[attribute_name] = attrib_obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue