summaryrefslogtreecommitdiff
path: root/src/undo.cpp
diff options
context:
space:
mode:
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];