fixed bug in editor when using undo after rotating level repeatedly
[rocksndiamonds.git] / src / editor.c
index a16c902fe5d7a4df249739cfcbc244504d07435d..725badd7b65cc5443a6d5317aea742f29604c3b7 100644 (file)
@@ -10477,6 +10477,9 @@ static void CopyLevelToUndoBuffer(int mode)
   boolean new_undo_buffer_position = TRUE;
   int x, y;
 
+  if (undo_buffer_steps == 0)
+    accumulated_undo = FALSE;
+
   switch (mode)
   {
     case UNDO_IMMEDIATE: