2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-11 14:59:06 +00:00

Only deserialize CVar value when they differ

This commit is contained in:
Phillip Stephens 2015-12-02 20:08:14 -08:00
parent 17405aadb8
commit 88c442514a

View File

@ -123,8 +123,11 @@ void CVarManager::deserialize(CVar* cvar)
return; return;
} }
cvar->m_value = tmp.m_value; if (cvar->m_value != tmp.m_value)
cvar->m_flags |= CVar::EFlags::Modified; {
cvar->m_value = tmp.m_value;
cvar->m_flags |= CVar::EFlags::Modified;
}
} }
} }
} }