mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Merge pull request #5980 from ksritharan/master
Fix to SafeRange to allow more valid ranges
This commit is contained in:
commit
eee004485f
1 changed files with 1 additions and 2 deletions
|
@ -24,8 +24,7 @@ var SafeRange = function (array, startIndex, endIndex, throwError)
|
||||||
if (startIndex < 0 ||
|
if (startIndex < 0 ||
|
||||||
startIndex > len ||
|
startIndex > len ||
|
||||||
startIndex >= endIndex ||
|
startIndex >= endIndex ||
|
||||||
endIndex > len ||
|
endIndex > len)
|
||||||
startIndex + endIndex > len)
|
|
||||||
{
|
{
|
||||||
if (throwError)
|
if (throwError)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue