Fix null ref ptr static analysis

This commit is contained in:
Vincent Lejeune 2014-11-16 23:24:50 +01:00
parent 084ae89b55
commit d34bdc2344

View File

@ -243,8 +243,7 @@ void TrackObjectManager::castRay(const btVector3 &from,
{
distance = hit_point->distance(from);
}
const TrackObject* curr;
for_in(curr, m_driveable_objects)
for (const TrackObject* curr : m_driveable_objects)
{
btVector3 new_hit_point;
const Material *new_material;