summaryrefslogtreecommitdiff
path: root/src/undo.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-02-07 00:21:06 -0500
committerFox Caminiti <fox@foxcam.net>2023-02-07 00:21:06 -0500
commitee654e9217487f6fca12356ec8af82319c309592 (patch)
tree7b87b83ed9087b73b733555243a66d3d0c93e900 /src/undo.cpp
parente2e0e630ca51a4fd80a8186c5795c96693a2815b (diff)
good changes
Diffstat (limited to 'src/undo.cpp')
-rw-r--r--src/undo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/undo.cpp b/src/undo.cpp
index 38c22ef..c26ab1b 100644
--- a/src/undo.cpp
+++ b/src/undo.cpp
@@ -271,6 +271,7 @@ History_Purge(memory *Memory, history_entry_list *History, uint64 ActionCount_To
static void History_Action_Add(memory *Memory, history_action ActionData, void *ReferenceData = NULL)
{
+ Assert(Debug.UndoState == 1); // This action wasn't preceded by a History_Undo_Start!
history_entry_list *History = &Memory->History;
history_entry *Entry = &History->Entry[History->EntryPlayhead - 1];