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

main
Chris Burel 5 years ago committed by GitHub
parent 5b940e8ed6
commit c751cda73d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
}

Loading…
Cancel
Save