SPEC-2513 Fixes to enable w4457

This commit is contained in:
Esteban Papp
2021-06-04 10:51:47 -07:00
committed by GitHub
parent aa700fc97f
commit 76a6df341b
23 changed files with 124 additions and 125 deletions
@@ -91,10 +91,10 @@ namespace EMotionFX
}
else
{
AZ::Outcome<size_t> index = factory.FindRegisteredIndexByTypeId(instance);
if (index.IsSuccess())
AZ::Outcome<size_t> motionIndex = factory.FindRegisteredIndexByTypeId(instance);
if (motionIndex.IsSuccess())
{
GUI->setCurrentIndex(static_cast<int>(index.GetValue() + 1)); // +1 because we inserted an 'Automatic' one as first entry.
GUI->setCurrentIndex(static_cast<int>(motionIndex.GetValue() + 1)); // +1 because we inserted an 'Automatic' one as first entry.
}
else
{