mirror of https://github.com/AxioDL/metaforce.git
Only deserialize CVar value when they differ
This commit is contained in:
parent
17405aadb8
commit
88c442514a
|
@ -123,10 +123,13 @@ void CVarManager::deserialize(CVar* cvar)
|
|||
return;
|
||||
}
|
||||
|
||||
if (cvar->m_value != tmp.m_value)
|
||||
{
|
||||
cvar->m_value = tmp.m_value;
|
||||
cvar->m_flags |= CVar::EFlags::Modified;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CVarManager::serialize()
|
||||
|
|
Loading…
Reference in New Issue