@ fixed another undo/redo system bug that made closing the map slow

This commit is contained in:
codeimp 2009-06-15 18:44:28 +00:00
parent 1edd6284bc
commit 4f52e3f5e8

View file

@ -326,7 +326,7 @@ namespace CodeImp.DoomBuilder.Editing
// This begins writing to the record stream
private bool BeginRecordData(StreamCodes code)
{
if(ss == null) return false;
if((ss == null) || isdisposed) return false;
isrecordingcommand = true;
prevstreamlength = stream.Length;
ss.wByte((byte)code);