Format Entity.cpp.

This commit is contained in:
Relintai 2022-03-17 22:04:02 +01:00
parent 7d8a93324e
commit 30a413ca78

View File

@ -5631,14 +5631,14 @@ void Entity::update(float delta) {
}
if (ESS::get_singleton()) {
for (int i = 0; i < ESS::get_singleton()->stat_get_count(); ++i) {
if (stat_get_dirty(i)) {
ssend_stat(i, stat_gets_current(i));
for (int i = 0; i < ESS::get_singleton()->stat_get_count(); ++i) {
if (stat_get_dirty(i)) {
ssend_stat(i, stat_gets_current(i));
stat_set_dirty(i, false);
stat_set_dirty(i, false);
}
}
}
}
if (_s_entity_controller == EntityEnums::ENITIY_CONTROLLER_AI && _s_ai.is_valid() && _s_ai->get_enabled()) {
if (_s_pet_owner)
@ -5976,7 +5976,7 @@ Entity::Entity() {
//_action_bar_profile.instance();
_actionbar_locked = false;
ESS* ess_singleton = ESS::get_singleton();
ESS *ess_singleton = ESS::get_singleton();
if (ess_singleton) {
_stats.resize(ess_singleton->stat_get_count());