- forbid defcvars from a wadfile

This commit is contained in:
Rachael Alexanderson 2019-12-31 04:24:48 -05:00 committed by Christoph Oelckers
parent 7dfd49b42e
commit 8be7ef0ec5

View file

@ -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();