Merge pull request #4941 from rokuz/traffic-compile-fix

Fixed compilation issue
This commit is contained in:
mpimenov 2016-12-09 17:20:05 +03:00 committed by GitHub
commit 2eef321bb2

View file

@ -429,7 +429,8 @@ bool TrafficInfo::ReceiveTrafficKeys()
TrafficInfo::ServerDataStatus TrafficInfo::ReceiveTrafficValues(string & etag, vector<SpeedGroup> & values)
{
if (!m_mwmId.IsAlive())
return false;
return ServerDataStatus::Error;
auto const & info = m_mwmId.GetInfo();
if (!info)
return ServerDataStatus::Error;