Stat will be set dirty after deserialization now.

This commit is contained in:
Relintai 2019-10-25 21:58:29 +02:00
parent de25ec9dd5
commit 5ea15ab1c9
2 changed files with 4 additions and 1 deletions

View File

@ -4217,7 +4217,7 @@ void Entity::update(float delta) {
s->apply_modifiers();
if (s->get_dirty()) {
//send target is nout public
//send target is not public
s->setc_values(s->gets_current(), s->gets_max());
s->set_dirty(false);
}

View File

@ -473,6 +473,9 @@ void Stat::_from_dict(const Dictionary &dict) {
_modifiers.push_back(sm);
}
_dirty = true;
_dirty_mods = true;
}
Stat::Stat() {