Don't change static variable when updating callback for single CVars

This commit is contained in:
Ricardo Luís Vaz Silva 2022-12-12 19:22:27 -03:00 committed by Rachael Alexanderson
parent 7349c95623
commit 8dbe0ae353

View file

@ -215,13 +215,11 @@ FBaseCVar::~FBaseCVar ()
void FBaseCVar::SetCallback(void (*callback)(FBaseCVar&))
{
m_Callback = callback;
m_UseCallback = true;
}
void FBaseCVar::ClearCallback()
{
m_Callback = nullptr;
m_UseCallback = false;
}
void FBaseCVar::SetExtraDataPointer(void *pointer)