mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-13 12:55:58 +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
|
// reset all cvars
|
||||||
ConsoleWrite("Resetting all cvars\n", DEFAULT_COLOR);
|
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();
|
cvar->Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ int32_t CvarDefaultCommandHandler(const char* command, const char* arguments) {
|
|||||||
// restore all cvars
|
// restore all cvars
|
||||||
ConsoleWrite("Restoring all cvars\n", DEFAULT_COLOR);
|
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();
|
cvar->Default();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user