mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-26 05:46:04 +03:00
fix(console): specify CVar namespace when using s_registeredCVars
This commit is contained in:
parent
8e5b32555c
commit
ad147508a1
@ -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…
Reference in New Issue
Block a user