Compile fix in the editor actor component for release build (#1327)

This commit is contained in:
Benjamin Jillich
2021-06-15 17:44:57 +02:00
committed by GitHub
parent 36deca64d8
commit 74e922a401
@@ -459,8 +459,7 @@ namespace EMotionFX
void EditorActorComponent::OnAssetReady(AZ::Data::Asset<AZ::Data::AssetData> asset)
{
m_actorAsset = asset;
Actor* actor = m_actorAsset->GetActor();
AZ_Assert(m_actorAsset.IsReady() && actor, "Actor asset should be loaded and actor valid.");
AZ_Assert(m_actorAsset.IsReady() && m_actorAsset->GetActor(), "Actor asset should be loaded and actor valid.");
CheckActorCreation();
}