From b39c7374009d03d448e47e08ddabc30abeee5247 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Thu, 25 Aug 2022 18:55:59 -0400 Subject: minor fixes --- undo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'undo.cpp') 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++; -- cgit v1.2.3