summaryrefslogtreecommitdiff
path: root/undo.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-25 18:55:59 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-25 18:55:59 -0400
commitb39c7374009d03d448e47e08ddabc30abeee5247 (patch)
treed1a022544720138f244c0bf9cbc1437ff50e589d /undo.cpp
parentae94b4b9fc5b4443f6d9eb6bb450de1def108cdb (diff)
minor fixes
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++;