- fix nullptr dereference

This commit is contained in:
Rachael Alexanderson 2023-12-10 19:26:19 -05:00 committed by Christoph Oelckers
parent 93772c4e0c
commit 0bf634013e

View file

@ -1711,7 +1711,7 @@ void FBaseCVar::ListVars (const char *filter, int listtype)
bool ismatch;
if (includedesc)
if (filter && includedesc)
{
// search always allow partial matches
// also allow matching to cvar name, localised description, and description language-id