- add null check for the defcvars blacklist

This commit is contained in:
Rachael Alexanderson 2025-01-26 18:45:46 -05:00
parent 3c8c484327
commit 6ea1b68a1c
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -134,7 +134,7 @@ void D_GrabCVarDefaults()
var = FindCVar(CurrentFindCVar.GetChars(), NULL);
if (var->GetFlags() & CVAR_SYSTEM_ONLY)
if (var && var->GetFlags() & CVAR_SYSTEM_ONLY)
blacklisted = true;
if (blacklisted)