Script editor: fixed a crash when trying to compile one-line script.

This commit is contained in:
MaxED 2013-11-18 12:36:42 +00:00
parent aa4fbd8b43
commit 7c8370b9d3
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.GZDoom
} }
} }
} else if ((token == "#include" || token == "#import") && processIncludes) { } else if (processIncludes && (token == "#include" || token == "#import")) {
SkipWhitespace(true); SkipWhitespace(true);
string includeLump = StripTokenQuotes(ReadToken()).ToLowerInvariant(); string includeLump = StripTokenQuotes(ReadToken()).ToLowerInvariant();

View file

@ -33,7 +33,7 @@ namespace CodeImp.DoomBuilder.ZDoom
#region ================== Variables #region ================== Variables
// Parsing // Parsing
protected string whitespace = "\n \t\r\u00A0"; //mxd. non-breaking space is also space :) protected string whitespace = "\n \t\r\u00A0\0"; //mxd. non-breaking space is also space :)
protected string specialtokens = ":{}+-\n;"; protected string specialtokens = ":{}+-\n;";
// Input data stream // Input data stream