diff --git a/src/Array.cpp b/src/Array.cpp index b8f9ac35c..d51401f15 100644 --- a/src/Array.cpp +++ b/src/Array.cpp @@ -290,7 +290,7 @@ void ArrayBase::Splice(ArrayBase *outResult,int inPos,int inLen) if (inPos<0) inPos =0; } - if (inLen<0) + if (inLen<=0) return; if (inPos+inLen>length) inLen = length - inPos;