From 3575ffc0a31a8beaefac7073f65da2ed0ed777a3 Mon Sep 17 00:00:00 2001 From: MaxED Date: Thu, 29 Jan 2015 08:18:11 +0000 Subject: [PATCH] Added some more boilerplate to MapManager.CompileLump() --- Source/Core/General/MapManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Core/General/MapManager.cs b/Source/Core/General/MapManager.cs index 9638e575..57f40de1 100644 --- a/Source/Core/General/MapManager.cs +++ b/Source/Core/General/MapManager.cs @@ -1580,6 +1580,13 @@ namespace CodeImp.DoomBuilder ScriptConfiguration scriptconfig; if(config.MapLumps[lumpname].ScriptBuild) { + //mxd. More boilderplate + if(!General.CompiledScriptConfigs.ContainsKey(General.Map.Options.ScriptCompiler)) + { + General.ShowErrorMessage("Unable to compile lump '" + lumpname + "'. Unable to find required script compiler configuration ('" + General.Map.Options.ScriptCompiler + "').", MessageBoxButtons.OK); + return false; + } + scriptconfig = General.CompiledScriptConfigs[General.Map.Options.ScriptCompiler]; } else