Fixed a minor issue with the CurveKeyCollection

This commit is contained in:
SND\AstrorEnales_cp 2012-10-14 09:49:13 +00:00 committed by Konstantin Koch
parent 1aa7d3fe37
commit b661bba5f3
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -78,7 +78,7 @@ namespace ANX.Framework
}
int index = keys.BinarySearch(item);
if(index == -1)
if(index < 0)
{
index = ~index;
keys.Insert(index, item);