Skip to content

Commit

Permalink
- add null check for the defcvars blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Jan 26, 2025
1 parent 3c8c484 commit 6ea1b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d_defcvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ea1b68

Please sign in to comment.