fixed crash when using Create Prefab from Selection without any selection

This commit is contained in:
codeimp 2009-01-09 20:48:41 +00:00
parent 1982f07ab7
commit 3370d90bd0

View file

@ -340,6 +340,7 @@ namespace CodeImp.DoomBuilder.Editing
General.ShowErrorMessage("Error while writing prefab to file! See log file for error details.", MessageBoxButtons.OK);
}
}
data.Dispose();
}
else
{
@ -348,7 +349,6 @@ namespace CodeImp.DoomBuilder.Editing
}
// Done
data.Dispose();
General.MainWindow.UpdateInterface();
Cursor.Current = oldcursor;
}