mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-21 11:31:41 +00:00
- forbid defcvars from a wadfile
This commit is contained in:
parent
7dfd49b42e
commit
8be7ef0ec5
1 changed files with 4 additions and 0 deletions
|
@ -1756,6 +1756,10 @@ void C_GrabCVarDefaults ()
|
|||
|
||||
while ((lump = Wads.FindLump("DEFCVARS", &lastlump)) != -1)
|
||||
{
|
||||
// don't parse from wads
|
||||
if (lastlump > Wads.GetLastLump(Wads.GetMaxIwadNum()))
|
||||
I_FatalError("Cannot load DEFCVARS from a wadfile!\n");
|
||||
|
||||
FScanner sc(lump);
|
||||
|
||||
sc.MustGetString();
|
||||
|
|
Loading…
Reference in a new issue