Fix variables not being set in config when no collection was being passed

This commit is contained in:
emb 2015-08-03 21:39:42 -05:00
parent 8b39bca011
commit b4f1cb259e

View File

@ -130,11 +130,12 @@ bool Configuration::parseLine(std::string collection, std::string keyPrefix, std
key = trimEnds(key);
value = line.substr(position + delimiter.length(), line.length());
value = trimEnds(value);
// only overwrite the collection name if we know it. We could be parsing a launcher configuration
if(collection != "")
{
value = line.substr(position + delimiter.length(), line.length());
value = trimEnds(value);
value = Utils::replace(value, "%ITEM_COLLECTION_NAME%", collection);
}