@ Fixed a bug in General.Map.UndoRedo.PerformRedo(n) (bug occurred when n > 1)

This commit is contained in:
codeimp 2009-07-15 15:10:50 +00:00
parent 5b9c65b47a
commit 0ac4c4ad4f

View file

@ -676,6 +676,7 @@ namespace CodeImp.DoomBuilder.Editing
else
{
// Nothing more to undo
u = null;
break;
}
}
@ -807,6 +808,7 @@ namespace CodeImp.DoomBuilder.Editing
else
{
// Nothing more to redo
r = null;
break;
}
}
@ -827,6 +829,10 @@ namespace CodeImp.DoomBuilder.Editing
MemoryStream data = r.GetStream();
PlaybackStream(data);
data.Dispose();
// Done with this snapshot
r = null;
levelsundone++;
}
if(levels > 1)