Fix for variable that is only used in the debug config (#1166)

This commit is contained in:
Chris Burel
2021-06-07 13:07:17 +00:00
committed by GitHub
parent 5b940e8ed6
commit c751cda73d
@@ -299,8 +299,7 @@ namespace EMotionFX
void ActorComponent::OnAssetReady(AZ::Data::Asset<AZ::Data::AssetData> asset)
{
m_configuration.m_actorAsset = asset;
Actor* actor = m_configuration.m_actorAsset->GetActor();
AZ_Assert(m_configuration.m_actorAsset.IsReady() && actor, "Actor asset should be loaded and actor valid.");
AZ_Assert(m_configuration.m_actorAsset.IsReady() && m_configuration.m_actorAsset->GetActor(), "Actor asset should be loaded and actor valid.");
CheckActorCreation();
}