mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +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);
|
SkipWhitespace(true);
|
||||||
string includeLump = StripTokenQuotes(ReadToken()).ToLowerInvariant();
|
string includeLump = StripTokenQuotes(ReadToken()).ToLowerInvariant();
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue