cosmetics

This commit is contained in:
UbitUmarov
2021-05-29 15:39:01 +01:00
parent a23bf4eb1b
commit ee530d438f
2 changed files with 7 additions and 8 deletions

View File

@@ -1040,7 +1040,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
// now, this makes the math easier
int remove = end - start;
if(Data.Length <= remove)
if(remove >= Data.Length)
return new list(new object[0]);
ret = new object[Data.Length - remove];
@@ -1048,7 +1048,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
if (start > 0)
Array.Copy(Data, 0, ret, 0, start);
if(end > Data.Length - 1)
if(end >= Data.Length)
return new list(ret);
Array.Copy(Data, end, ret, start, Data.Length - end);