Skip to content

Commit 18955da

Browse files
committed
Fixes a crash when trying to emplace animation event node data into a vector. AZStd::vector::emplace first parameter an iterator, not an index into the vector
Signed-off-by: AMZN-Gene <[email protected]>
1 parent 04c8617 commit 18955da

File tree

1 file changed

+1
-1
lines changed
  • Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/TimeView

1 file changed

+1
-1
lines changed

Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/TimeView/TrackDataWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ namespace EMStudio
25852585
EMotionFX::AnimGraphNode* curNode = node->GetParentNode();
25862586
while (curNode)
25872587
{
2588-
nodePath.emplace(0, curNode);
2588+
nodePath.emplace(nodePath.begin(), curNode);
25892589
curNode = curNode->GetParentNode();
25902590
}
25912591

0 commit comments

Comments
 (0)