Further PR feedback on the Spawnble Entity Aliases.

Signed-off-by: AMZN-koppersr <82230785+AMZN-koppersr@users.noreply.github.com>
This commit is contained in:
AMZN-koppersr
2021-11-08 12:00:15 -08:00
parent 8ccccdcaf1
commit c9f9a83c57
4 changed files with 80 additions and 58 deletions
@@ -944,7 +944,7 @@ namespace AzFramework
{
for (AZ::Entity* entity : request.m_ticket->m_spawnedEntities)
{
if (entity != nullptr && !entity->GetComponents().empty())
if (entity != nullptr)
{
// Setting it to 0 is needed to avoid the infinite loop between GameEntityContext and SpawnableEntitiesManager.
entity->SetSpawnTicketId(0);