mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
Fixed a problem where the last line of UDMF maps were not parsed correctly
This commit is contained in:
parent
d65fb7bbab
commit
2b6c7b44c2
1 changed files with 6 additions and 2 deletions
|
@ -191,11 +191,15 @@ namespace CodeImp.DoomBuilder.IO
|
|||
while((cpErrorResult == 0) && (endofstruct == false))
|
||||
{
|
||||
// Get current character
|
||||
if(line == data.Length - 1) break;
|
||||
if(pos > data[line].Length - 1)
|
||||
if (pos > data[line].Length - 1)
|
||||
{
|
||||
pos = 0;
|
||||
line++;
|
||||
|
||||
// Stop if we have reached the end of the data
|
||||
if (line == data.Length)
|
||||
break;
|
||||
|
||||
if(string.IsNullOrEmpty(data[line])) continue; //mxd. Skip empty lines here so correct line number is displayed on errors
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue