mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-19 21:33:15 +02:00
Fix performance issue with the AI.
This commit is contained in:
parent
413031fb3c
commit
bf28679b95
@ -10,6 +10,9 @@ void EntityAI::set_enabled(bool value) {
|
||||
}
|
||||
|
||||
void EntityAI::set_owner(Entity *entity) {
|
||||
if (entity == _owner)
|
||||
return;
|
||||
|
||||
_owner = entity;
|
||||
|
||||
call("_on_set_owner");
|
||||
|
Loading…
Reference in New Issue
Block a user