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
1 changed files with 5 additions and 2 deletions

View File

@ -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()