fix deallocate bug

This commit is contained in:
Mashy 2019-03-06 15:28:49 +10:00
parent b022845ff7
commit 9ba8c478cc

View File

@ -235,6 +235,7 @@ class ItemList extends Phaser.Scene {
if (cBox.item === item) cBox.deallocate(); if (cBox.item === item) cBox.deallocate();
}); });
this.combinerItems[clearIndex] = -1; this.combinerItems[clearIndex] = -1;
this.registry.set('combinerItems', this.combinerItems);
} }
item.setPosition(item.origX, item.origY); item.setPosition(item.origX, item.origY);
}; };