Commit 07c5336f authored by Rishab Arora's avatar Rishab Arora

Removing Redundant Names from Find Box

parent e1229a8d
......@@ -57,7 +57,8 @@ void CatalogComponent::loadData() {
this);
for (int iter = 0; iter < names.size(); iter++) {
if (names.at(iter).first <= SkyObject::TYPE_UNKNOWN) {
objectNames(names.at(iter).first).append(names.at(iter).second);
if (!objectNames(names.at(iter).first).contains(names.at(iter).second))
objectNames(names.at(iter).first).append(names.at(iter).second);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment