add a message for the failure case for resetcvar command

This commit is contained in:
Alexander Kromm 2020-10-15 01:10:11 +07:00 committed by Christoph Oelckers
parent 92d68d05db
commit aa16fefd88

View file

@ -1507,8 +1507,14 @@ CCMD (resetcvar)
{
FBaseCVar *var = FindCVar (argv[1], NULL);
if (var != NULL)
{
var->ResetToDefault();
}
else
{
Printf ("No such variable: %s\n", argv[1]);
}
}
}
CCMD (get)