mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
Merge pull request #345 from edward-san/keyconf_empty_lines
- Fixed a KEYCONF parser issue with empty lines.
This commit is contained in:
commit
a8fbdb425f
1 changed files with 5 additions and 0 deletions
|
@ -177,6 +177,11 @@ void D_LoadWadSettings ()
|
||||||
{
|
{
|
||||||
cmd[i] = conf[i];
|
cmd[i] = conf[i];
|
||||||
}
|
}
|
||||||
|
if (i == 0)
|
||||||
|
{
|
||||||
|
conf++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
cmd[i] = 0;
|
cmd[i] = 0;
|
||||||
conf += i;
|
conf += i;
|
||||||
if (*conf == '\n')
|
if (*conf == '\n')
|
||||||
|
|
Loading…
Reference in a new issue