Check on the filename instead of the argument count

Check on if the filename is set instead of the argument count for commandDump and dvarDump
This commit is contained in:
Xerxes 2021-04-25 14:57:15 +02:00
parent e8f74f523a
commit 7ff8c3091e

View File

@ -306,7 +306,7 @@ namespace command
const auto dvar = game::sortedDvars[i];
if (dvar)
{
if (argument.size() == 2)
if (!filename.empty())
{
//It's 10.2020 and still no std:format in vs :<
std::string line = dvar->name;
@ -342,7 +342,7 @@ namespace command
{
if (cmd->name)
{
if (argument.size() == 2)
if (!filename.empty())
{
//It's 10.2020 and still no std:format in vs :<
std::string line = cmd->name;