From c59cf944c2a790e20507e1b44fd94e7a3cf8e794 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 14 Apr 2025 14:40:27 +0200 Subject: [PATCH] Zero out the entity's ObjectID in ESSEntityWorldSpawner3DSingle when exiting tree. --- .../world_spawners/ess_entity_world_spawner_3d_single.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp b/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp index d4144d6cc..681018031 100644 --- a/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp +++ b/modules/entity_spell_system/world_spawners/ess_entity_world_spawner_3d_single.cpp @@ -155,6 +155,8 @@ void ESSEntityWorldSpawner3DSingle::_notification(int p_what) { if (ent) { ent->sets_spawner_object_id(ObjectID()); } + + _entity = ObjectID(); } break; case NOTIFICATION_INTERNAL_PROCESS: