More fixes for Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -113,7 +113,7 @@ namespace
|
||||
|
||||
AZStd::string PyTrackViewGetSequenceName(unsigned int index)
|
||||
{
|
||||
if (index < PyTrackViewGetNumSequences())
|
||||
if (static_cast<int>(index) < PyTrackViewGetNumSequences())
|
||||
{
|
||||
const CTrackViewSequenceManager* pSequenceManager = GetIEditor()->GetSequenceManager();
|
||||
return pSequenceManager->GetSequenceByIndex(index)->GetName();
|
||||
@@ -378,7 +378,7 @@ namespace
|
||||
}
|
||||
|
||||
CTrackViewAnimNodeBundle foundNodes = pParentDirector->GetAllAnimNodes();
|
||||
if (index < 0 || index >= foundNodes.GetCount())
|
||||
if (index < 0 || index >= static_cast<int>(foundNodes.GetCount()))
|
||||
{
|
||||
throw std::runtime_error("Invalid node index");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user