From 30a413ca780d757ab157a10dbe34c6ce32e0d625 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 17 Mar 2022 22:04:02 +0100 Subject: [PATCH] Format Entity.cpp. --- modules/entity_spell_system/entities/entity.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/entity_spell_system/entities/entity.cpp b/modules/entity_spell_system/entities/entity.cpp index a81e4cfb8..1e845532c 100644 --- a/modules/entity_spell_system/entities/entity.cpp +++ b/modules/entity_spell_system/entities/entity.cpp @@ -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());