mirror of
https://github.com/photonstorm/phaser
synced 2024-11-14 17:07: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 ||
|
||||
startIndex > len ||
|
||||
startIndex >= endIndex ||
|
||||
endIndex > len ||
|
||||
startIndex + endIndex > len)
|
||||
endIndex > len)
|
||||
{
|
||||
if (throwError)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue