splicing and dicing

This commit is contained in:
James B. Pollack 2015-12-04 14:05:31 -08:00
parent 3211bec7ce
commit 51b0c48866

View file

@ -356,7 +356,6 @@ function removeRatFromScene(rat) {
var metaRatIndex = findWithAttr(metaRats, 'rat', rat);
if (metaRatIndex > -1) {
metaRats[index].injector.stop();
delete metaRats[index].injector
metaRats.splice(index, 1);
}
@ -373,7 +372,6 @@ function popRatFromStack(entityID) {
var metaRatIndex = findWithAttr(metaRats, 'rat', entityID);
if (metaRatIndex > -1) {
metaRats[index].injector.stop();
delete metaRats[index].injector
metaRats.splice(index, 1);
}