2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 19:44:55 +00:00

CVar: Ensure m_wasDeserialized set in deferred & command line cases

This commit is contained in:
2021-05-15 19:00:40 -04:00
parent e9b4cce6db
commit 789e23b16c
3 changed files with 8 additions and 7 deletions

View File

@@ -218,10 +218,7 @@ bool CVar::toBoolean(bool* isValid) const {
return false;
}
if (isValid != nullptr)
*isValid = true;
return athena::utility::parseBool(m_value);
return athena::utility::parseBool(m_value, isValid);
}
int32_t CVar::toSigned(bool* isValid) const {