2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-06 04:15:40 +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;
}
cvar->m_value = tmp.m_value;
cvar->m_flags |= CVar::EFlags::Modified;
if (cvar->m_value != tmp.m_value)
{
cvar->m_value = tmp.m_value;
cvar->m_flags |= CVar::EFlags::Modified;
}
}
}
}