mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 11:30:09 +03:00
fix(console): fix improper printing in 'cvarlist' command
This commit is contained in:
parent
f6fba9b74c
commit
5bb6123a43
@ -384,7 +384,7 @@ int32_t CvarListCommandHandler(const char* command, const char* arguments) {
|
||||
char text2[256];
|
||||
|
||||
for (auto cvar = CVar::s_registeredCVars.Head(); cvar != nullptr; cvar = CVar::s_registeredCVars.Next(cvar)) {
|
||||
SStrPrintf(text, sizeof(text), " \"%s\" is \"%s\"", cvar->m_key.m_str, cvar->m_stringValue);
|
||||
SStrPrintf(text, sizeof(text), " \"%s\" is \"%s\"", cvar->m_key.m_str, cvar->m_stringValue.GetString());
|
||||
|
||||
if (cvar->m_defaultValue.GetString()) {
|
||||
if (SStrCmp(cvar->m_stringValue.GetString(), cvar->m_defaultValue.GetString(), STORM_MAX_STR)) {
|
||||
|
Loading…
Reference in New Issue
Block a user