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:
Kyzentun
2014-08-22 13:19:17 -06:00
parent 8b062785ea
commit 2c49ec7380
6 changed files with 42 additions and 36 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ static void Serialize( const RadarValues &o, Json::Value &root )
{
FOREACH_ENUM( RadarCategory, rc )
{
root[ RadarCategoryToString(rc) ] = o.m_Values.f[rc];
root[ RadarCategoryToString(rc) ] = o[rc];
}
}