Fixed a minor issue with the CurveKeyCollection
This commit is contained in:
parent
1aa7d3fe37
commit
b661bba5f3
@ -20,8 +20,6 @@ using ANXCurveKeyCollection = ANX.Framework.CurveKeyCollection;
|
||||
using XNACurveTangent = Microsoft.Xna.Framework.CurveTangent;
|
||||
using ANXCurveTangent = ANX.Framework.CurveTangent;
|
||||
|
||||
|
||||
|
||||
// This file is part of the ANX.Framework created by the
|
||||
// "ANX.Framework developer group" and released under the Ms-PL license.
|
||||
// For details see: http://anxframework.codeplex.com/license
|
||||
|
@ -78,7 +78,7 @@ namespace ANX.Framework
|
||||
}
|
||||
|
||||
int index = keys.BinarySearch(item);
|
||||
if(index == -1)
|
||||
if(index < 0)
|
||||
{
|
||||
index = ~index;
|
||||
keys.Insert(index, item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user