aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/printcommands.cpp
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-10-08 01:44:02 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-10-08 01:44:02 +0100
commitd7d92226bc13710f2387492d893187faf8da738b (patch)
tree5e80c337bdfe9fdce6a46aac44f3a02f62c0e3e3 /NorthstarDLL/printcommands.cpp
parentb03070d5b4575581ff6183cada8083446caa351e (diff)
downloadNorthstarLauncher-d7d92226bc13710f2387492d893187faf8da738b.tar.gz
NorthstarLauncher-d7d92226bc13710f2387492d893187faf8da738b.zip
fixup command flags better and reformat
Diffstat (limited to 'NorthstarDLL/printcommands.cpp')
-rw-r--r--NorthstarDLL/printcommands.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/printcommands.cpp b/NorthstarDLL/printcommands.cpp
index 90af1575..d03d92c4 100644
--- a/NorthstarDLL/printcommands.cpp
+++ b/NorthstarDLL/printcommands.cpp
@@ -13,6 +13,8 @@ void PrintCommandHelpDialogue(const ConCommandBase* command, const char* name)
// temp because command->IsCommand does not currently work
ConVar* cvar = R2::g_pCVar->FindVar(command->m_pszName);
+ if (cvar)
+ return;
// build string for flags if not FCVAR_NONE
std::string flagString;