From aa16fefd8804319a12c5dd5361da63ab6d4ed397 Mon Sep 17 00:00:00 2001 From: Alexander Kromm Date: Thu, 15 Oct 2020 01:10:11 +0700 Subject: [PATCH] add a message for the failure case for resetcvar command --- src/common/console/c_cvars.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/console/c_cvars.cpp b/src/common/console/c_cvars.cpp index fe19246d4e..1c6df1e246 100644 --- a/src/common/console/c_cvars.cpp +++ b/src/common/console/c_cvars.cpp @@ -1507,7 +1507,13 @@ CCMD (resetcvar) { FBaseCVar *var = FindCVar (argv[1], NULL); if (var != NULL) + { var->ResetToDefault(); + } + else + { + Printf ("No such variable: %s\n", argv[1]); + } } }