Change RadarValues internal implementation to not use a union and use the subscript operator instead of the float* operator for subscripting.
This commit is contained in:
@@ -128,7 +128,7 @@ static void Deserialize( RadarValues &o, const Json::Value &root )
|
||||
{
|
||||
FOREACH_ENUM( RadarCategory, rc )
|
||||
{
|
||||
o.m_Values.f[rc] = (float)root[ RadarCategoryToString(rc) ].asDouble();
|
||||
o[rc] = (float)root[ RadarCategoryToString(rc) ].asDouble();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user