- m_Report[tick][init]["Friendly"][unittype] = friendlyhits;
- m_Report[tick][init]["Friendly"][unittype]["000"] = freefriendly;
- m_Report[tick][init]["Hostile"][unittype] = hostilehits;
- m_Report[tick][init]["Hostile"][unittype]["000"] = freehostile;
+ if (freefriendly > 0)
+ {
+ m_Report[tick][init]["Friendly"][unittype] = friendlyhits;
+ m_Report[tick][init]["Friendly"][unittype]["000"] = freefriendly;
+ }
+ if (freehostile > 0)
+ {
+ m_Report[tick][init]["Hostile"][unittype] = hostilehits;
+ m_Report[tick][init]["Hostile"][unittype]["000"] = freehostile;
+ }