Fix performance issue with the AI.

This commit is contained in:
Relintai 2020-01-04 13:27:45 +01:00
parent 413031fb3c
commit bf28679b95

View File

@ -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");