mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
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:
parent
e8f74f523a
commit
7ff8c3091e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user