summaryrefslogtreecommitdiff
path: root/undo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'undo.cpp')
-rw-r--r--undo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/undo.cpp b/undo.cpp
index 2306db9..bb49772 100644
--- a/undo.cpp
+++ b/undo.cpp
@@ -282,8 +282,8 @@ void History_Action_Shift(memory *Memory, action_type ActionChange, void *DataAd
*(action_type *)Data = ActionChange;
}
-// Overwrite area with arbitrary-sized memory. Only use for creation/deletion,
-// not for value changes of things that already exist.
+// Overwrite area with arbitrary-sized memory. Only use if the previous data
+// doesn't need to be recorded, like pushing to the end of a stack.
void History_Action_StoreData(memory *Memory, void *DataAddress, uint64 ByteSize)
{
Memory->Action.Entry[Memory->Action.Index].NumberOfActions++;