Small fix on Location's Distance()

This commit is contained in:
marcgpuig 2018-11-15 15:02:06 +01:00
parent 903701979e
commit d24ebbe7be
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ namespace geom {
}
double Distance(const Location &loc) const {
return Math::Distance(Vector3D(this->x, this->y, this->z), loc);
return Math::Distance(*this, loc);
}
#ifdef LIBCARLA_INCLUDED_FROM_UE4