This commit is contained in:
Timothy Stiles 2020-10-14 22:34:00 +11:00
parent f7e83342a0
commit e3de4d59c7

View File

@ -979,13 +979,13 @@ export class Level {
} }
undo() { undo() {
//reverse the pending_undo too //reverse the pending_undo too
this.pending_undo.reverse(); this.pending_undo.reverse();
for (let undo of this.pending_undo) { for (let undo of this.pending_undo) {
undo(); undo();
} }
this.pending_undo = []; this.pending_undo = [];
this.aid = Math.max(1, this.aid); this.aid = Math.max(1, this.aid);
let entry = this.undo_stack.pop(); let entry = this.undo_stack.pop();