Fixed bug 1738359 Barycenter not included in URL Path

ver1_5_1
Christophe Teyssier 2007-11-03 14:54:42 +00:00
parent de297cfa12
commit 281176ec53
1 changed files with 3 additions and 1 deletions

View File

@ -398,10 +398,12 @@ static std::string getBodyName(Universe* universe, Body* body)
{
std::string name = body->getName();
PlanetarySystem* parentSystem = body->getSystem();
Body* parentBody = NULL;
const Body* parentBody = NULL;
if (parentSystem != NULL)
parentBody = parentSystem->getPrimaryBody();
else
parentBody = body->getOrbitBarycenter();
while (parentBody != NULL)
{