mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-17 21:26:35 +02:00
Fix potential crash.
This commit is contained in:
parent
c3a1bc4503
commit
f92758ce3d
@ -5459,7 +5459,7 @@ void Entity::update(float delta) {
|
||||
}
|
||||
}
|
||||
|
||||
if (_s_entity_controller == EntityEnums::ENITIY_CONTROLLER_AI && _s_ai->get_enabled()) {
|
||||
if (_s_entity_controller == EntityEnums::ENITIY_CONTROLLER_AI && _s_ai.is_valid() && _s_ai->get_enabled()) {
|
||||
if (_s_pet_owner)
|
||||
_s_ai->pet_update(delta);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user