Fixed several issues with compilation of Spawnable Entities Aliases.

Signed-off-by: AMZN-koppersr <82230785+AMZN-koppersr@users.noreply.github.com>
This commit is contained in:
AMZN-koppersr
2021-11-08 14:54:43 -08:00
parent 544806aed2
commit b3295ffeb3
2 changed files with 11 additions and 2 deletions
@@ -8,6 +8,7 @@
#include <AzToolsFramework/Prefab/Spawnable/SpawnableUtils.h>
#include <AzCore/Casting/numeric_cast.h>
#include <AzCore/Component/ComponentApplicationBus.h>
#include <AzCore/Component/Entity.h>
#include <AzCore/Component/EntityUtils.h>
@@ -297,7 +298,7 @@ namespace AzToolsFramework::Prefab::SpawnableUtils
{
if ((*it)->GetId() == entity)
{
return AZStd::distance(begin, it);
return aznumeric_caster(AZStd::distance(begin, it));
}
}
return InvalidEntityIndex;