mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
fix(console): specify CVar namespace when using s_registeredCVars
This commit is contained in:
parent
8e5b32555c
commit
ad147508a1
1 changed files with 2 additions and 2 deletions
|
|
@ -305,7 +305,7 @@ int32_t CvarResetCommandHandler(const char* command, const char* arguments) {
|
|||
// reset all cvars
|
||||
ConsoleWrite("Resetting all cvars\n", DEFAULT_COLOR);
|
||||
|
||||
for (auto cvar = s_registeredCVars.Head(); cvar != nullptr; cvar = s_registeredCVars.Next(i)) {
|
||||
for (auto cvar = CVar::s_registeredCVars.Head(); cvar != nullptr; cvar = CVar::s_registeredCVars.Next(i)) {
|
||||
cvar->Reset();
|
||||
}
|
||||
|
||||
|
|
@ -333,7 +333,7 @@ int32_t CvarDefaultCommandHandler(const char* command, const char* arguments) {
|
|||
// restore all cvars
|
||||
ConsoleWrite("Restoring all cvars\n", DEFAULT_COLOR);
|
||||
|
||||
for (auto cvar = s_registeredCVars.Head(); cvar != nullptr; cvar = s_registeredCVars.Next(i)) {
|
||||
for (auto cvar = CVar::s_registeredCVars.Head(); cvar != nullptr; cvar = CVar::s_registeredCVars.Next(i)) {
|
||||
cvar->Default();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue