diff --git a/Source/Core/Windows/MainForm.cs b/Source/Core/Windows/MainForm.cs index adfebeb9..cf3cc924 100755 --- a/Source/Core/Windows/MainForm.cs +++ b/Source/Core/Windows/MainForm.cs @@ -3143,6 +3143,9 @@ namespace CodeImp.DoomBuilder.Windows [BeginAction("viewusedtags")] internal void ViewUsedTags() { + if (General.Map == null) + return; + TagStatisticsForm f = new TagStatisticsForm(); f.ShowDialog(this); } @@ -3151,6 +3154,9 @@ namespace CodeImp.DoomBuilder.Windows [BeginAction("viewthingtypes")] internal void ViewThingTypes() { + if (General.Map == null) + return; + ThingStatisticsForm f = new ThingStatisticsForm(); f.ShowDialog(this); }