--- a/QTfrontend/campaign.cpp Sat Apr 22 20:37:51 2017 +0200
+++ b/QTfrontend/campaign.cpp Sat Apr 22 22:23:49 2017 +0200
@@ -107,11 +107,10 @@
}
/** Returns the localized campaign name */
-QString getRealCampName(QString & campaignName)
+QString getRealCampName(const QString & campaignName)
{
- QString campaignNameOrig = campaignName;
- QString campaignNameSpaces = campaignName.replace(QString("_"), QString(" "));
- return getCampMetaInfo()->value(campaignNameOrig+".name", campaignNameSpaces).toString();
+ QString campaignNameSpaces = QString(campaignName).replace(QString("_"), QString(" "));
+ return getCampMetaInfo()->value(campaignName+".name", campaignNameSpaces).toString();
}
QList<MissionInfo> getCampMissionList(QString & campaignName, QString & teamName)