mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 15:59:57 +02:00
Fix history crash
This commit is contained in:
parent
378793d18e
commit
f1572a165a
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ History = (function () {
|
|||
// Limit the number of history items.
|
||||
if (history.length >= MAX_HISTORY_ITEMS) {
|
||||
history.splice(0, history.length - MAX_HISTORY_ITEMS + 1);
|
||||
undoPosition = history.length - 1;
|
||||
}
|
||||
|
||||
history.push({ undoData: undoData, redoData: redoData });
|
||||
|
|
Loading…
Reference in a new issue