mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
Script editor: fixed a crash when trying to compile one-line script.
This commit is contained in:
parent
aa4fbd8b43
commit
7c8370b9d3
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
string includeLump = StripTokenQuotes(ReadToken()).ToLowerInvariant();
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace CodeImp.DoomBuilder.ZDoom
|
|||
#region ================== Variables
|
||||
|
||||
// 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;";
|
||||
|
||||
// Input data stream
|
||||
|
|
Loading…
Reference in a new issue