Fix duplicated english names (Closes: #441)

pull/3/head
Hleb Valoshka 2019-10-12 15:58:43 +03:00
parent 17db71b97f
commit f46c51d387
1 changed files with 6 additions and 2 deletions

View File

@ -160,10 +160,14 @@ void Body::setName(const string& name)
/*! Add a new name for this body. Aliases are non localized.
*/
void Body::addAlias(const string& alias)
{
// Don't add an alias if it matches the primary name
if (alias != names[0])
{
names.push_back(alias);
system->addAlias(this, alias);
}
}
PlanetarySystem* Body::getSystem() const