mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-17 01:31:25 +00:00
- oops, nullptr check
This commit is contained in:
parent
33b217bcc9
commit
82b7e93d26
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ level_info_t *level_info_t::CheckLevelRedirect ()
|
|||
if (RedirectCVAR != NAME_None)
|
||||
{
|
||||
auto var = FindCVar(RedirectCVAR.GetChars(), NULL);
|
||||
if ((var->GetRealType() == CVAR_Bool) && !(var->GetFlags() & CVAR_IGNORE)) // only check Bool cvars that are currently defined
|
||||
if (var && (var->GetRealType() == CVAR_Bool) && !(var->GetFlags() & CVAR_IGNORE)) // only check Bool cvars that are currently defined
|
||||
{
|
||||
if (var->GetFlags() & CVAR_USERINFO)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue