mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-26 13:49:01 -05:00
fixed removal bug in pair manager
This commit is contained in:
parent
cab5091212
commit
9153c7b836
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ var Manager = {};
|
|||
|
||||
// remove marked pairs
|
||||
for (i = 0; i < indexesToRemove.length; i++) {
|
||||
pairIndex = indexesToRemove[i];
|
||||
pairIndex = indexesToRemove[i] - i;
|
||||
pair = pairsList[pairIndex];
|
||||
delete pairsTable[pair.id];
|
||||
pairsList.splice(pairIndex, 1);
|
||||
|
|
Loading…
Reference in a new issue