From ee654e9217487f6fca12356ec8af82319c309592 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Tue, 7 Feb 2023 00:21:06 -0500 Subject: good changes --- src/undo.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/undo.cpp') 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]; -- cgit v1.2.3