mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
@ Fixed a bug in General.Map.UndoRedo.PerformRedo(n) (bug occurred when n > 1)
This commit is contained in:
parent
5b9c65b47a
commit
0ac4c4ad4f
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue